From 3e46587ef1582ad4da40bf631dba0c6c8c8a7a47 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Mon, 22 Sep 2014 17:02:20 +0530 Subject: [PATCH] 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 --- drivers/staging/vt6656/card.c | 3 +-- drivers/staging/vt6656/firmware.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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) -- 2.20.1