Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3392285pxb; Mon, 4 Oct 2021 01:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeCfLheUtvkSut/KoAmO8z2WKG9XoUDKw2EMG9CbOEbQBnAa7pUFb/Ju1LQn7Z3VGbtHjn X-Received: by 2002:a05:6a00:1141:b0:440:3c27:807c with SMTP id b1-20020a056a00114100b004403c27807cmr23218022pfm.71.1633334591840; Mon, 04 Oct 2021 01:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633334591; cv=none; d=google.com; s=arc-20160816; b=EcHcdzQPGTAm++F0o0Ha1J8vveG2jBa8zABEWufPfdZwFI5duED/3wrE34fTI4r4f4 IDTwmdkjlQlc7Ht7GEQ5dAeADdy6ot2XTU3VANHkCbCv+QXV5Ky1QqxOB1l5q4B5L0NR Xss7IyrQi28Gir8lSgR6ascBiXzdznSmbQtMrhfRISI0DFvL6vwJ1UiiKE0wJWeKikxi 5Vnbp949K1B+pW7UEToNMXnoqxGwKjNEKUADoPkM08GSVDBOKoZVg8y95Ha16SMKnfOe N/c1ERdsbkMzw6/FVqgFHtNVRwNpC9rp8Ep4qcQL1vvPII22vCfypcYJNAWVShinlSY4 zV4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=c37BzLidBYzb5X13SgY9I9yJ9KC600FPw/jSiIVYAh0=; b=Ef4qd6Wsrw2Cq7mPyQFqzhKSO9vc/r/N+s5NZgxWQnB8RP+AhMCgpyLRywRPC9Y977 F+TYBgquT09pnFwTlFf5ZMEwYIny2STUTWLlSYi8H0EjvaZ8bHUcgt8rCykheLj8Mhct hrBp9mvUZ+e8Px4+fow+g9miE/YzDkuNK71KfpAboYiPyJOTbgjX6g1XMX8+4xmnbSsP ftPXbWKPaPCUKDR595BFqUhLcJZRTvqnQ3SI+cozV1H9g4RlxGyLA7FmDxq78M3mGoG3 m+xp1cV9C2zUP9ShfzeZHAC7qy60xExzcFJxA3OhnkWQd1qR/9hvn3Mp9cVYIlfjjScn 9XhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FocwmMIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si17723746pjy.147.2021.10.04.01.02.57; Mon, 04 Oct 2021 01:03:11 -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=@redhat.com header.s=mimecast20190719 header.b=FocwmMIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbhJDIBm (ORCPT + 99 others); Mon, 4 Oct 2021 04:01:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60678 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbhJDIBl (ORCPT ); Mon, 4 Oct 2021 04:01:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633334391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c37BzLidBYzb5X13SgY9I9yJ9KC600FPw/jSiIVYAh0=; b=FocwmMIt0k8MP8aYaLA/VYXyrBEyL0oeiyKJoQ+mcRQlMeF/Bu7mCQONnR6Cu2Bzvu/Pts rox7d7XeC2YsVSuOOoR0TxrB+HkGAx9vDPez/avjxRsXpSpi2oq++bT5WG0WFZTcS1TiFi /7Lcxj3Duo+plg0gtp4CvaN6wIGByqw= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-535-YAZH9hyAPj21N8NdfthOrg-1; Mon, 04 Oct 2021 03:59:50 -0400 X-MC-Unique: YAZH9hyAPj21N8NdfthOrg-1 Received: by mail-ed1-f70.google.com with SMTP id k10-20020a508aca000000b003dad77857f7so440979edk.22 for ; Mon, 04 Oct 2021 00:59:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c37BzLidBYzb5X13SgY9I9yJ9KC600FPw/jSiIVYAh0=; b=gmURyQY30viN2BuLHTF5XHu2YqduxNGVuNvL03u55SUfkO4x64rOqltcVNI8kqJptU KsRH9AHv49S9zbA4EC/BGofbe+znotCSvhSIOGWIqP3eArR4Jd/qEUOOjRu0+bMbwCfg YFMTnRlA20JTBuxLP81Cap71c7YYx3UXJHGBcIHcu5BvTq27sxaISLthaFNQ8pGIMW1i qSPCagi+LPthHEIaQIUUNO4BV1+hogtxSoz46GAxwwC3WRaxXSax9G+3wQVurDzbmBQq vdz8VtZIBN5I0if6SGvLA383uLyHziNU+rDpgT6UPIyhQdpgB2tHmhN27o48wuQD9JNe u7EQ== X-Gm-Message-State: AOAM531KzP6RjOj8LKkUz6ep8JWA81bjlsfgfXT/9352Mr4tornJ/4Xe TKJKwoOhvlK9EBHFKNqJQdtNxf9emxgkatCD7kBuPissjLX3Tu93j/vV/9XaJVw+esRRkH02899 f/i8Ccq7pRuyeCR+e+8GGV+kc X-Received: by 2002:a50:bb09:: with SMTP id y9mr16259956ede.89.1633334389020; Mon, 04 Oct 2021 00:59:49 -0700 (PDT) X-Received: by 2002:a50:bb09:: with SMTP id y9mr16259942ede.89.1633334388849; Mon, 04 Oct 2021 00:59:48 -0700 (PDT) Received: from x1.localdomain ([81.30.35.201]) by smtp.gmail.com with ESMTPSA id n6sm6893877eds.10.2021.10.04.00.59.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Oct 2021 00:59:48 -0700 (PDT) Subject: Re: [PATCH] staging: rtl8723bs: core: remove condition never execute To: Saurav Girepunje , gregkh@linuxfoundation.org, fabioaiuto83@gmail.com, ross.schm.dev@gmail.com, marcocesati@gmail.com, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com References: From: Hans de Goede Message-ID: Date: Mon, 4 Oct 2021 09:59:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/3/21 5:58 PM, Saurav Girepunje wrote: > Remove condition which never get execute. > as pattrib->mdata is always zero before if condition check. > > Signed-off-by: Saurav Girepunje Thanks, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c > index b2c042c36777..3ee4d35ca8d7 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c > +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c > @@ -3222,9 +3222,6 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, > 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 >