Commit 007c2d8769139f3c9e99114219d6800aeccdfaef

Authored by Dan Carpenter
Committed by David Woodhouse
1 parent 8c1a1158c9

mtd: return success on blktrans_ioctl

There was a break missing so we returned -ENOTTY on success instead of
zero.  This was introduced by 048d8719956: "mtd: blktrans: Hotplug fixes"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/mtd/mtd_blkdevs.c
... ... @@ -245,6 +245,7 @@
245 245 switch (cmd) {
246 246 case BLKFLSBUF:
247 247 ret = dev->tr->flush ? dev->tr->flush(dev) : 0;
  248 + break;
248 249 default:
249 250 ret = -ENOTTY;
250 251 }