staging: vt6656: remove unnecessary else after return
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Mon, 22 Sep 2014 11:32:20 +0000 (17:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:41:15 +0000 (13:41 -0700)
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 <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c
drivers/staging/vt6656/firmware.c

index 98567a7dc5b93ad7e11b6fa37bd096dd10944cf5..9340f1508cff1ab97f6226d43e5d83975b7fe0ab 100644 (file)
@@ -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;
 }
 
 /*
index eae4f32d9b66aa88ba510da31f66f0a418e88cc3..e52934ffe3081d1629e03b3b53b742fcc33e0a35 100644 (file)
@@ -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)