diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-31 16:03:38 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-02 09:01:47 +0100 |
commit | 007c2d8769139f3c9e99114219d6800aeccdfaef (patch) | |
tree | b6b9b4bba2e02629b1daabae6fa7709eeffca0ed /drivers | |
parent | 8c1a1158c98b810d34b469c787840ac16904e5fa (diff) | |
download | linux-007c2d8769139f3c9e99114219d6800aeccdfaef.tar.bz2 |
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')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 1 |
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, switch (cmd) { case BLKFLSBUF: ret = dev->tr->flush ? dev->tr->flush(dev) : 0; + break; default: ret = -ENOTTY; } |