mtd: nand: ecc-bch: Return only valid error codes
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 29 Sep 2020 23:01:09 +0000 (01:01 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 30 Nov 2020 08:27:33 +0000 (09:27 +0100)
commite3010bd3ef1eda13f08155fe43846a64d0990a86
tree69b02b7ef5b1e013ba644b9598e0e1fb4d4045b5
parent3c0fe36abebee55821badaa9d6cecd03799f7843
mtd: nand: ecc-bch: Return only valid error codes

When a function is not available, returning -ENOTSUPP makes much more
sense than returning -1.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200929230124.31491-6-miquel.raynal@bootlin.com
include/linux/mtd/nand-ecc-sw-bch.h