Re: [PATCH] fs/ubifs: remove unnecessary new_valid_dev check
From: Artem Bityutskiy
Date: Thu Oct 01 2015 - 09:35:20 EST
On Wed, 2015-09-30 at 10:11 +0200, Richard Weinberger wrote:
> > {
> > - if (new_valid_dev(rdev)) {
> > - dev->new = cpu_to_le32(new_encode_dev(rdev));
> > - return sizeof(dev->new);
> > - } else {
> > - dev->huge = cpu_to_le64(huge_encode_dev(rdev));
> > - return sizeof(dev->huge);
> > - }
> > + dev->new = cpu_to_le32(new_encode_dev(rdev));
> > + return sizeof(dev->new);
> > }
>
> Reviewed-by: Richard Weinberger <richard@xxxxxx>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/