From: Tapasweni Pathak Date: Mon, 22 Sep 2014 11:32:20 +0000 (+0530) Subject: staging: vt6656: remove unnecessary else after return X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e46587ef1582ad4da40bf631dba0c6c8c8a7a47;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: vt6656: remove unnecessary else after return This patch fixes checkpatch.pl warning in files of vt6656 WARNING: else is not generally useful after a break or return Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c index 98567a7dc5b9..9340f1508cff 100644 --- a/drivers/staging/vt6656/card.c +++ b/drivers/staging/vt6656/card.c @@ -487,8 +487,7 @@ u8 vnt_get_pkt_type(struct vnt_private *priv) return (u8)priv->bb_type; else if (vnt_ofdm_min_rate(priv)) return PK_TYPE_11GA; - else - return PK_TYPE_11GB; + return PK_TYPE_11GB; } /* diff --git a/drivers/staging/vt6656/firmware.c b/drivers/staging/vt6656/firmware.c index eae4f32d9b66..e52934ffe308 100644 --- a/drivers/staging/vt6656/firmware.c +++ b/drivers/staging/vt6656/firmware.c @@ -105,8 +105,7 @@ int vnt_firmware_branch_to_sram(struct vnt_private *priv) NULL); if (status != STATUS_SUCCESS) return false; - else - return true; + return true; } int vnt_check_firmware_version(struct vnt_private *priv)