mtd: spi-nor: cqspi: remove redundant dead code on error return check
authorColin Ian King <colin.king@canonical.com>
Tue, 31 Jan 2017 15:53:17 +0000 (15:53 +0000)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 10 Feb 2017 13:22:00 +0000 (14:22 +0100)
commit7fa2c7038cc0ec16ae5d8eee347ea136de0f4b65
tree50401214cbafd13dcb70099b548b701288f3a1b5
parent35fd766117de41ed475948410c3ec5ab07cd3d03
mtd: spi-nor: cqspi: remove redundant dead code on error return check

Checking for ret < 0 is redundant because a previous check on ret
being non-zero already handles the ret < 0 case. Remove the redundant
code. Found by CoverityScan, CID#1398863, CID#1398864

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/cadence-quadspi.c