]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: fix mtd_oobavail() incoherent returned value
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 18 Nov 2018 20:18:30 +0000 (21:18 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 2 Dec 2018 08:20:39 +0000 (09:20 +0100)
commit4348433d8c0234f44adb6e12112e69343f50f0c5
tree1ac39af7b0ec6e52366688e1086d54c87f99af98
parent4845a077c0b9c5c10422a090dbd1d894233f9456
mtd: fix mtd_oobavail() incoherent returned value

mtd_oobavail() returns either mtd->oovabail or mtd->oobsize. Both
values are unsigned 32-bit entities, so there is no reason to pretend
returning a signed one.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
include/linux/mtd/mtd.h