lkml.org 
[lkml]   [2017]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mtd: spi-nor: cqspi: remove redundant dead code on error return check
From
Date
Am 31.01.2017 um 16:53 schrieb Colin King:
> From: Colin Ian King <colin.king@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@canonical.com>

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

Thanks,
//richard

\
 
 \ /
  Last update: 2017-01-31 17:40    [W:0.044 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site