Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753183AbbF3Fzo (ORCPT ); Tue, 30 Jun 2015 01:55:44 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:33075 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750698AbbF3Fzh (ORCPT ); Tue, 30 Jun 2015 01:55:37 -0400 Date: Tue, 30 Jun 2015 11:25:24 +0530 From: Ravi Teja Darbha To: micky_ching@realsil.com.cn Cc: gregkh@linuxfoundation.org, joe@perches.com, fabio.falzoi84@gmail.com, nizamhaider786@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] rts5208:Fix checkpatch warnings Message-ID: <20150630055524.GA19594@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 45 Else condition after if statement is not necessary, hence removed. Signed-off-by: Ravi Teja Darbha --- drivers/staging/rts5208/xd.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.c index 10fea7b..42d8d82 100644 --- a/drivers/staging/rts5208/xd.c +++ b/drivers/staging/rts5208/xd.c @@ -1689,10 +1689,9 @@ static int xd_read_multiple_pages(struct rtsx_chip *chip, u32 phy_blk, xd_set_err_code(chip, XD_TO_ERROR); rtsx_trace(chip); return STATUS_FAIL; - } else { - rtsx_trace(chip); - goto Fail; } + rtsx_trace(chip); + goto Fail; } return STATUS_SUCCESS; @@ -1905,10 +1904,9 @@ static int xd_write_multiple_pages(struct rtsx_chip *chip, u32 old_blk, xd_set_err_code(chip, XD_TO_ERROR); rtsx_trace(chip); return STATUS_FAIL; - } else { - rtsx_trace(chip); - goto Fail; } + rtsx_trace(chip); + goto Fail; } if (end_page == (xd_card->page_off + 1)) { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/