summaryrefslogtreecommitdiff
path: root/crypto/algif_rng.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-05-21 10:44:32 -0700
committerBrian Norris <computersforpeace@gmail.com>2015-05-21 10:44:32 -0700
commitc4a3f13c2ab997617eaf7020af33b057a68285fd (patch)
tree4dfd5c65ea9dfa43ba0e02a6ac524df0c8355df4 /crypto/algif_rng.c
parent01d0afddf37cbb4da8581d6dc9bfa5b63bae3390 (diff)
mtd: blktrans: use better error code for unimplemented ioctl()
In commit 50183936254b ("mtd: blktrans: change blktrans_getgeo return value") we fixed the problem that ioctl(HDIO_GETGEO) might return 0 (success) for mtdblock devices which did not implement the feature and would leave a blank (zero) result. But now, let's get the error code right. Other code paths on this ioctl tend to use -ENOTTY to notify the user that the ioctl() is not supported for the device, so let's use that instead of -EOPNOTSUPP. Suggested-by: Richard Weinberger <richard@nod.at> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'crypto/algif_rng.c')
0 files changed, 0 insertions, 0 deletions