Received: by 10.213.65.68 with SMTP id h4csp1566706imn; Mon, 19 Mar 2018 07:37:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELsAiJKgx+L9QIBhPpuLsZpNOoMfOcYza6xNS4wHQUvCofT9cKhy1KFqTBbDXJMNsbpPZ483 X-Received: by 2002:a17:902:b185:: with SMTP id s5-v6mr12579148plr.109.1521470252576; Mon, 19 Mar 2018 07:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521470252; cv=none; d=google.com; s=arc-20160816; b=CNLps0Vpft7w9SeDe1VRqW66fH2nSO0A+2ovB8eK+jq7ftHK2PpGBtKgvhohtujE73 EX4sz4j48oYKE9txgk57iMZ19cra+LBnOaQ0PVRTS0gqK8bFKsS4y7v5m0uXJU9bsc4+ r5SXFpc0KRLnqE9zhyUny1ndIC/jYzQrFI1WEyVxWEX7xy1VrwY6YXpVQpirMiYxFGBw BQrjBrzcrdhJxzRY72sev4dIh/RcExrwxsJhKMYa98aGcTBCIaycqvxR2bNLL3V34cCi GyDKxrK3IKBgKxxbAEKjO0imhOPPExD7RYy7PWJURAZVUDr5xsXvHyYZw3zX/6Uvft94 +fzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=FjzU6zQOl3dEM41Rur1PNOCDuB+epgGFn/8++OnclAA=; b=sxF4G71Y2sEP4E6wTkvvvOkJ06KaBpWXA17lJdcYITaQmDkklI/p/qUJP2x6sZ21t+ zzXMuTCD6AbAewHLHWdzrGzvzm62xpxxJHE6/0/a9r1/yzn8Q54rGhPvc2jKUTq5zAws /Ebqq+quevuRyXTzjggiI4DHlTq7oTvHBnZbFRkx3un3Vl3nkxTMbJcK1WJg7JIGf6AM QbV26O6qYtjYeATZvL/SlFjQ019S3TkUFsFv/j1SSVnepn/I8aIw3wA5IlN5DN7py98g 45p0NEUuYbiuNLU5zP3KRIapB8ttqoWQ010Fbj5pox8R1tnMgnjXwl3MPqbJjaLQ+KBc RTgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f/K7DDyA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17-v6si88636pls.611.2018.03.19.07.37.17; Mon, 19 Mar 2018 07:37:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f/K7DDyA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933034AbeCSOfg (ORCPT + 99 others); Mon, 19 Mar 2018 10:35:36 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54595 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754964AbeCSOfc (ORCPT ); Mon, 19 Mar 2018 10:35:32 -0400 Received: by mail-wm0-f67.google.com with SMTP id h76so15630055wme.4 for ; Mon, 19 Mar 2018 07:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FjzU6zQOl3dEM41Rur1PNOCDuB+epgGFn/8++OnclAA=; b=f/K7DDyAlRZU781PSotrfMYO7lOtTmDo1yXwV7ZX/im1PY+tkHWJn/BZqERs6yxFfC FhDu9zpIJDrLKukCX4fuxDvB8ncpWVKXtpdl4BaczRETMl84YS4AaibxH5ZrT5YtSdv5 z1Mz4OPpwybxHhUuEu5+AkA3PqyihUIixMhgBA7kw/g3jzQbKP7/qsqOlYQR8AtYCURW UI9cwt10JsoaHTM9mgobmfo4adWQapni/lVdMAE1fty11NseC85SC1eE7csT6is94nQc Do9P2y28rzKi9XwbteTAXYC9hTEV+FoC+Xp1mhZzk8mWYqZjtjU2VY3w5+1/fAJ+a8+E vL4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FjzU6zQOl3dEM41Rur1PNOCDuB+epgGFn/8++OnclAA=; b=hl86OR2ZTQbf59LsrYH4C2jes6NoSonXrh04xqZG+l7I8jzG35mly93kKqV7N6+6M4 0Hetu2fbCm5UU2GODyjDA+H1kQOeWYhJpayHtutxk6Yhgt4rMO4g3Mho7yKLJEPe7ggk hVKTUk0k7t4zkENZoljwkVOK30jXztmpI15KgnCQNLoGmnBWASgjDsCQ8BFkN6imdUSr 5J9HvVYsHe6bTaV0Q/qfaC+X+/M5fOBtFLApo/41ugifoPzpkmyM0p0h/OYZ+9XkdU73 yz2FMGRmwYyObL/MmK9VPo/9AogotOmAWrEZ56iG1nnQLgyBxsMQxQtWL1m8V9xaOMkO QpFg== X-Gm-Message-State: AElRT7FxcblWP8r7LEeNYMfetDO5t11XQuAWu3EZiACg9CI08R0B+Q67 Cvud5P8cABmik/nJmT3u9t4= X-Received: by 10.80.145.148 with SMTP id g20mr1333971eda.24.1521470130869; Mon, 19 Mar 2018 07:35:30 -0700 (PDT) Received: from gamer-pc.Home ([78.18.185.194]) by smtp.gmail.com with ESMTPSA id b10sm264225edj.73.2018.03.19.07.35.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 07:35:29 -0700 (PDT) From: Paul McQuade To: paulmcquad@gmail.com Cc: gregkh@linuxfoundation.org, davem@davemloft.net, johannes.berg@intel.com, stephen@networkplumber.org, keescook@chromium.org, Larry.Finger@lwfinger.net, hdegoede@redhat.com, Linyu.Yuan@alcatel-sbell.com.cn, colin.king@canonical.com, arnd@arndb.de, arvind.yadav.cs@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] Staging:rtl8723bs:os_dep braces not necessary Date: Mon, 19 Mar 2018 14:34:58 +0000 Message-Id: <20180319143500.19623-3-paulmcquad@gmail.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319143500.19623-1-paulmcquad@gmail.com> References: <20180319143500.19623-1-paulmcquad@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Paul McQuade --- drivers/staging/rtl8723bs/os_dep/recv_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c index e804b430931c..117fda4fa1bf 100644 --- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c @@ -181,11 +181,11 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt pkt->dev = padapter->pnetdev; #ifdef CONFIG_TCP_CSUM_OFFLOAD_RX - if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1)) { + if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1)) pkt->ip_summed = CHECKSUM_UNNECESSARY; - } else { + else pkt->ip_summed = CHECKSUM_NONE; - } + #else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */ pkt->ip_summed = CHECKSUM_NONE; #endif /* CONFIG_TCP_CSUM_OFFLOAD_RX */ -- 2.16.2