Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1480947pxb; Sat, 4 Sep 2021 11:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbaC8CTawGKev5dQqBMM48TH/MmAm9JVizPgX7WUzXy3pz6FNOfUpDfnzm0gJGsUbC563a X-Received: by 2002:a5d:9d01:: with SMTP id j1mr3803684ioj.27.1630778583792; Sat, 04 Sep 2021 11:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630778583; cv=none; d=google.com; s=arc-20160816; b=fNgaljldceBcekx8dOI3JkuIxZt9l/7ZnxgjBAJib24iTAqk7TSNcmk29p8h8Tf6Va 8TCB82IjPvG9LeD088yI46Of0A4p/toQMAApng5NBk5OB+dETAyDR0Y1QoJCt6nLCfSH RwAshAPEn9f7cZaIhQIQf2t9enMfhXXufSFQfjC8ED6QP+8WtDclXm/hBMxhv+RHqG9m 0j8+C36GuEdAczuenrPfBZgBAsgS5SDXL1sMsgXlc3w5tkubNJGfaCUv1IWXv6M2xFxU /RxayPllqzqPTd7P6/DMpTS+NGLpN/CvCPpRkbDfc7U9fSwTKC6pVmTWMUnQ7tRwPb7l Jn8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QnhrKb9fsy/ZBD0qfjeHSev1bAl3ZIGL9b4MHAvFavg=; b=fvoZ0K7BvIVskranwjawEXNt+IJtQf/2LOC5DzDmBee9W6IHbyj5SPxMiF6UV8A4iR iC+jhzk1nmt0qEhgzFXRMYiZJ6YDryELWhjXoHSUSMK2crzAWAFqKZZQvEwvdRQAQK0n uaKeX9HpNfYCkqqJiMG+JE7uGLCorLRBkWXnLf3CfluFx8JFvmGHQBsSCPWeDvp3dkof ASnSoHG2lvTlp5zjfuO9KM8iNB1KQ1IhZL02MMSbx3HgdjyTwIPqE257vEZCON5R8Fl2 n6vz79Zt9ruuz+0V7QRdtJ6GAmzU4K19GRhsk+N24u2CWDTAd/1p6RrTT1eHuNUCphpc 3dSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=1GocTiMk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si2624264ior.73.2021.09.04.11.02.52; Sat, 04 Sep 2021 11:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@philpotter-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=1GocTiMk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237170AbhIDRym (ORCPT + 99 others); Sat, 4 Sep 2021 13:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231181AbhIDRyl (ORCPT ); Sat, 4 Sep 2021 13:54:41 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13AC1C061575 for ; Sat, 4 Sep 2021 10:53:40 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id c17so2370196pgc.0 for ; Sat, 04 Sep 2021 10:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QnhrKb9fsy/ZBD0qfjeHSev1bAl3ZIGL9b4MHAvFavg=; b=1GocTiMk4sq3+M4s/GkMG0fW6ATqHhJevDe/U8ZczJh8ZT2O7zuS8KUVtTIGvN9EIy IG5bWFYmtmk+2GzNIly9dIKsmoIVA1P4zs7nPzPsoutGXhotFmW+L0igHog677jS2IdK 67n8Wsh6UGb25McHCQZIzQrc9kTu8xAp68AQ89ocbNBzYa9oAeTtlAXc78CBxebY4LMf p8WASJZxyfSRkPtqKV89ivauHU4mkjdFTznd9AMxb5wkG15PVhqz46EqNRAW571Zh0eC PwM/AvomHFsOoS2Ysp0xjWKRJ9KXZ6ZgKv0TtwYt0LLjbN37n7jFQLVkHxvxr/JQsHqx yKXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QnhrKb9fsy/ZBD0qfjeHSev1bAl3ZIGL9b4MHAvFavg=; b=VJQpP0dFOsHYUHfDpiVNjxt88Dow5QKmmd7CQqx2Mlv42O7ExgeSeVyn4gQ0FzCOgG bKIGsGl+R268xUF3muuKlL83jxnqkTBm0aCAc3J7kP02w7+H5EpzRdaCwjeyHQN2QJab M9Mj8GdpawtZ/Yfk/7G73mOrYj7AxmyEJMpvI8VxXOSyUYB7sXbSZ0nNUyac18BTReap N4PZBucgO2zlSJ8iJSE3NxpIXJ/lXdB7VwedRGvGVhRMYrT5agwUyO2flObO3WEKg+lk ZfJR3jofdHIo+K0TyiOEFv/uxGyVsscSPqXrTSJ9oyDQ+VHrxFDVmJv1KbM7Er12zg90 5EHQ== X-Gm-Message-State: AOAM5328H2+vC3ETQYMzXcu8KNzlel2hqdNi3rqzOF8MYqvrt648cWzs u3o+pL8w6SqtcbhLKxDJ4za9fy9IHPgFCvQkd4NyM/sH342GUg== X-Received: by 2002:a63:1a65:: with SMTP id a37mr4433700pgm.338.1630778019574; Sat, 04 Sep 2021 10:53:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Phillip Potter Date: Sat, 4 Sep 2021 18:53:28 +0100 Message-ID: Subject: Re: [PATCH] staging: r8188eu: core: remove condition never execute To: Saurav Girepunje Cc: Larry Finger , Greg KH , Michael Straube , "open list:STAGING SUBSYSTEM" , Linux Kernel Mailing List , saurav.girepunje@hotmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 4 Sept 2021 at 13:50, Saurav Girepunje wrote: > > Remove condition which never get execute. > as pattrib->mdata is always zero before if condition check. > > Signed-off-by: Saurav Girepunje > --- > drivers/staging/r8188eu/core/rtw_mlme_ext.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c > index 4178b3c1ff57..f314f55997bf 100644 > --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c > +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c > @@ -5669,9 +5669,6 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 > else if ((pmlmeinfo->state & 0x03) == WIFI_FW_STATION_STATE) > SetToDs(fctrl); > > - if (pattrib->mdata) > - SetMData(fctrl); > - > qc = (unsigned short *)(pframe + pattrib->hdrlen - 2); > > SetPriority(qc, tid); > -- > 2.32.0 > Thanks for this. Acked-by: Phillip Potter Regards, Phil