mtd: fix mtd_oobavail() incoherent returned value
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 18 Nov 2018 20:11:46 +0000 (21:11 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 12 Apr 2019 05:28:21 +0000 (10:58 +0530)
commita55036b2786919996db6dcffd5f0a86d1077184b
tree04c2db63a0594e2db86da932886d039e80a2c38b
parent3d2f12c4a151f6a4ec54782befa2fa92bcaa558f
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>
include/linux/mtd/mtd.h