staing: rtl8712: else after return or break warning
authorGamze POLAT <gamzepolat94@gmail.com>
Fri, 20 Feb 2015 20:42:17 +0000 (22:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 23:08:36 +0000 (15:08 -0800)
This patch fixes checkpatch.pl warning.
WARNING: else is not generally useful after a break or return

Signed-off-by: Gamze POLAT <gamzepolat94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_recv.c

index 06f15f81c4d86062c53f00e33617945e6688ace7..046a46c4cd7ff1e2f392f827ab6272569b5bff90 100644 (file)
@@ -517,8 +517,7 @@ static sint validate_recv_data_frame(struct _adapter *adapter,
                return _FAIL;
        if (psta == NULL)
                return _FAIL;
-       else
-               precv_frame->u.hdr.psta = psta;
+       precv_frame->u.hdr.psta = psta;
        pattrib->amsdu = 0;
        /* parsing QC field */
        if (pattrib->qos == 1) {