From: Roxana Blaj Date: Sat, 20 Sep 2014 14:21:04 +0000 (+0300) Subject: staging: rts5208: remove unnecessary else X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b037e229e1c316bbdfdaa265fb47e437db0f3c07;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: rts5208: remove unnecessary else This fixes the warning: WARNING: else is not generally useful after a break or return Signed-off-by: Roxana Blaj Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rts5208/ms.c b/drivers/staging/rts5208/ms.c index db8e22166db8..75d2174f1708 100644 --- a/drivers/staging/rts5208/ms.c +++ b/drivers/staging/rts5208/ms.c @@ -862,8 +862,8 @@ static int ms_read_attribute_info(struct rtsx_chip *chip) 0, 0, buf, 64 * 512); if (retval == STATUS_SUCCESS) break; - else - rtsx_clear_ms_error(chip); + + rtsx_clear_ms_error(chip); } if (retval != STATUS_SUCCESS) { kfree(buf);