[PATCH] mtd: spi-nor: cqspi: remove redundant dead code on error return check

Richard Weinberger richard at nod.at
Tue Jan 31 08:39:41 PST 2017


Am 31.01.2017 um 16:53 schrieb Colin King:
> From: Colin Ian King <colin.king at canonical.com>
> 
> 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 at canonical.com>

Reviewed-by: Richard Weinberger <richard at nod.at>

Thanks,
//richard



More information about the linux-mtd mailing list