On Sat, 2008-09-13 at 19:06 -0400, Oren Laadan wrote:
This one has been bugging me a bit. This adds one net line of code and
I think it's much easier to read:
{
struct cr_hdr h;
int ret;
ret = cr_read_obj(ctx, &h, buf, n);
if (ret)
return ret;
ret = -EINVAL;
if (h.type == type)
ret = h.parent;
return ret;
}
-- Dave
--