Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp373046pxb; Thu, 19 Aug 2021 01:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3CPzlBVXxpf/zEGFpKDIM3MKkkJ1XFwZAKnx0DJLDRb0bNcUumVmD0bLiZZcGNdvJfhGd X-Received: by 2002:a6b:b512:: with SMTP id e18mr10869821iof.98.1629361188512; Thu, 19 Aug 2021 01:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629361188; cv=none; d=google.com; s=arc-20160816; b=kmUurjA/uTPvgwQoh2/3IPWT1RcfyR9BjsTvnAHnJLDAAzNTnXV+VAiYmOno9Y3dxU rynqHMpQniyO91RPm2ogW/CwVMcHlFOpb6EM6bXyzMDbAfJay+4N4jOpnm/LQDZUEvwD LQRrDcfb8e3br9XGeXmPEQTyYut8M/2uqx/D4MRDGw0w+1+d4zz0Tzq+gVGsa/AGCE7r EeMIiZTTmVxyKHm4kAf9MbxuJbPjJEyoiE1ItZaoAURIdXhuRT6vXq+ZgnJ6O9BSkcDN aJ64xWdbC79I/OMeLhrJgcLjRjaGqnr0TsTb0/CdyBCZb+UH6ejbiXulPFQfPV52k4U+ lIJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VTzxzxgtANnnZ4yDUItRXfvQkRDYdVRI72br3L7vJiU=; b=tCDnijwxTYLQfIDPQa2ewCNECQSxc90vc/D4PCDCjE9J52SaI71oKnbzVmHi3iNA8L v1cgd98BJfrDUdO8ubxV408egcnfOKDQgSeqQGBsCjvqzw5sZBmtOL1PywqixYbNwWtV 3jhDwiX+MdqrFHEP1Ckj75BENscu5wt0mO39s1ynAbK6G6oSxgkL1E0ivkmRv07d4JhV DpPJTEzxRkCJ49rUgxDIg9KRfoMt0DOSLucrHY1XVmxlJlc5xMK0eQT1cTVFPbIZFMxL GIucpY5gjgY/Ld1I10Webop/eWCbIFvNSvyuMdAE4FsvzGrpPmxiY75UZid6KX/ZI/1o gBQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ulsr12LQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si2375433ila.112.2021.08.19.01.19.15; Thu, 19 Aug 2021 01:19:48 -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=@gmail.com header.s=20161025 header.b=ulsr12LQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237166AbhHSISt (ORCPT + 99 others); Thu, 19 Aug 2021 04:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237151AbhHSISs (ORCPT ); Thu, 19 Aug 2021 04:18:48 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B604C061757 for ; Thu, 19 Aug 2021 01:18:12 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id nt11so4437540pjb.2 for ; Thu, 19 Aug 2021 01:18:12 -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 :mime-version:content-transfer-encoding; bh=VTzxzxgtANnnZ4yDUItRXfvQkRDYdVRI72br3L7vJiU=; b=ulsr12LQIKBPZl89g0R0dzxz+ZIfEHuok8a8gAt2/ohMBcbIyNg5dT/lvjd1kpws/A 8O/qCbIuPcGUp55U1nBxxEwsSw9vMS9qzHbSloRIVdCZr1a7ONJt6Y3nmtJZ5rIVTlTp yq/jQS+wYRWj+iNBoucGCb2aqueI7itfsM0xQmqbNbnRGiV0ZAMxmeHjATjZkS2Yc0eT RpxrPXU3QXNnE6egXdrASuxVuNkfmLPvtBOkmkI7JjzIHAGB/1Ja3zstVJZjNxsYM69k Yh9pNm7ePWvfLwh1rECCwoMGJqhsvWWeuS1RPSONhfHPxK6zA/CObSzjScnie4nnAikR xr9A== 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:mime-version:content-transfer-encoding; bh=VTzxzxgtANnnZ4yDUItRXfvQkRDYdVRI72br3L7vJiU=; b=Hx5In92eW2KncVXMJdxouQ9vBevWsK1agmcZdMIYaKm6dRdsbGZOjPg89KtjnFUWWk Lch368iFk70So6uUXnkiR9ihj3lFNlC+UtC2+Vfecj/iED8AtjYec9mlQGpZSUyA7Yj7 NOZYkJ9vD3Pl/F3MN/8BB2TWErP+QmXMSNwJgI+5pinIIAtxUW4EF6iwAm10JXVib9Hz NsJm+CX2QLgDYst/kYj4/uc0e9+SiJqXJKl//o5GU2kHY2bu6jM7UJD9rAiJ7egw5Q5i GwKP3b9hy9Eesd1OtmFhmOrSmUvmOJsfudVCSQjUeedcLcSw0XKCoymnM0wQQXeKmvm5 k68g== X-Gm-Message-State: AOAM532FuCz+oudt4hvDFVPbllgU/0+YzMSrWoYxU43yo59FbGCROFvZ MQDWNPFau3hUALhZlN8vl+0= X-Received: by 2002:a17:90a:d587:: with SMTP id v7mr13918406pju.110.1629361091668; Thu, 19 Aug 2021 01:18:11 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id gb17sm1531129pjb.26.2021.08.19.01.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 01:18:11 -0700 (PDT) From: Aakash Hemadri To: Greg Kroah-Hartman , Larry Finger , Phillip Potter Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/5] staging: r8188eu: cast to restricted __be32 Date: Thu, 19 Aug 2021 13:47:54 +0530 Message-Id: <602aefc30b0d979dc6e402d52da2f096ea5c67cf.1629360917.git.aakashhemadri123@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: > rtw_br_ext.c:836:54: warning: cast to restricted __be32 Unnecessary double cast, remove them. Signed-off-by: Aakash Hemadri --- drivers/staging/r8188eu/core/rtw_br_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c b/drivers/staging/r8188eu/core/rtw_br_ext.c index 404fa8904e47..6a0462ce6230 100644 --- a/drivers/staging/r8188eu/core/rtw_br_ext.c +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c @@ -671,7 +671,7 @@ void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb) (udph->dest == __constant_htons(SERVER_PORT))) { /* DHCP request */ struct dhcpMessage *dhcph = (struct dhcpMessage *)((size_t)udph + sizeof(struct udphdr)); - u32 cookie = be32_to_cpu((__be32)dhcph->cookie); + u32 cookie = dhcph->cookie; if (cookie == DHCP_MAGIC) { /* match magic word */ if (!(dhcph->flags & htons(BROADCAST_FLAG))) { -- 2.32.0