aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtd_blkdevs.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-31 10:03:38 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-02 04:01:47 -0400
commit007c2d8769139f3c9e99114219d6800aeccdfaef (patch)
treeb6b9b4bba2e02629b1daabae6fa7709eeffca0ed /drivers/mtd/mtd_blkdevs.c
parent8c1a1158c98b810d34b469c787840ac16904e5fa (diff)
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>
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r--drivers/mtd/mtd_blkdevs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 03e19c1965cc..a6bb5863e8f3 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -245,6 +245,7 @@ static int blktrans_ioctl(struct block_device *bdev, fmode_t mode,
245 switch (cmd) { 245 switch (cmd) {
246 case BLKFLSBUF: 246 case BLKFLSBUF:
247 ret = dev->tr->flush ? dev->tr->flush(dev) : 0; 247 ret = dev->tr->flush ? dev->tr->flush(dev) : 0;
248 break;
248 default: 249 default:
249 ret = -ENOTTY; 250 ret = -ENOTTY;
250 } 251 }