Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp924867lql; Tue, 12 Mar 2024 02:03:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeJdUx5XM0jFSKBNI9ynWSEXhdVBaDtHrvYvglDap8ENB2pHICtMamcMB6aNfIZaZ1KvlPxULqeD0i6uk570SSzBUOo3n8mCSKKhw2sQ== X-Google-Smtp-Source: AGHT+IEN2rxTZ75tYxuLZUHtjuEaaicvtjvZwrQTZqfCVrr1c3WH1Pd5+3+ae4wp/YB8CJS1P/4x X-Received: by 2002:a05:6871:2309:b0:21f:1795:7cb0 with SMTP id sf9-20020a056871230900b0021f17957cb0mr2868728oab.21.1710234232870; Tue, 12 Mar 2024 02:03:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710234232; cv=pass; d=google.com; s=arc-20160816; b=xmjDeehAZNexl4hmY4HMhggOMBqmitg0IFp0LjVt7B5KOOsoWw0xb6m72pkoXW5/Ee 1+TnnhTGTuFc+y5/pNbymFE5/dazbYU6Jt5XKJzuck0stH3uPIOulTJmQ9pp99pHxdwP yaNR1YzZb3kvY2qrHT9nRuIu8Li9c4OFv3HA0WOjQxssOUKvk98n6dkM963/raHYdtKU jTkmvcP3nt0BvC7vEcboEsFSIXm+/XjIkNTZ2B86E/6crVkoFDiczdA8pNBCajB0Gdv6 S4O3x39M1vmm9EPKmH+JKt17e35mc2BUpRq1pC2ofFmOxV7TpNl2qyGi6WnI94Mu23uC nDkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=J6i3TaLouGAS+GfFlJ9J9LI/0HUB7fKxpK6hNinsoOw=; fh=xfp2qEp6wXYhjtnTSjubo572Q78pdYDkwN3Yv0u63mA=; b=GWXucupGfGC8DALG4hefJTcbScHEH+Kf4O5yjHgeWgzluKhZ8ND0I2I3PiDuZHC1T1 7f0y/JlGJIm3gfT4a46VfAIXi6KNO5Hx7n94byeGKU8VVKCTT3OBKapHC50pXI91f/D8 x3vC5LNOg/mpiLFG9kQpIOdjn5CP99xlS2LjJ5mvL/53UbGRbSgZReA50T37kefeIl5G TxD2YccZqEQAVtNz46rAVVvbYTH3PS0SuUdHLvZG63DtILd5J0B2F+2yWqr+cYOtl4hJ +CFVVrQNz6+DU5qhj/OvnDWYzGrxOPKZB413CQ/EZ6NAUS3dpo3WULhAdb5ODX81PCfW KS4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=asgOlZAF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-99984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u4-20020a655c04000000b005e4f47de5fasi6556092pgr.242.2024.03.12.02.03.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=asgOlZAF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-99984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 66727282063 for ; Tue, 12 Mar 2024 09:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEF3F77F26; Tue, 12 Mar 2024 09:03:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="asgOlZAF" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F37E77F12 for ; Tue, 12 Mar 2024 09:03:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710234197; cv=none; b=Xna9bgjWv6zzDtB6zpSLJ+f9cNFuk4diRJSZ+y2FNwulxiOyTTQqqvygbtSBzw/siiA7NaX469OonKj1yoSTHRqf4xcH3FCG/C+wPDAYQCxWjxMog0Yh6ZntSFgVy6nbFS6r2JKQUhZ610znLpAId+AYpoR4h/8t6U3v271eHoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710234197; c=relaxed/simple; bh=s1TPGDD3FQrj7OxiV2Kb3nYfjuUTXMyg7DkuslLMXRc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UwEY7t/TsgXr9UH2oU0h0DPNvZwdOLUzQNMZjxupzm/vzq7iGv4v/8EuqqJfL93N7IjJXkJAHXNJS6tK6G4PGxZvj+WtjekWWpyUAfFrgTpEINbf01Vabn2suNFmjgyWbCo2spD3k2nH+7JoQv9o346yw4nAd0tvm0Kd4ONJOAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=asgOlZAF; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a44f2d894b7so654407366b.1 for ; Tue, 12 Mar 2024 02:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710234194; x=1710838994; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=J6i3TaLouGAS+GfFlJ9J9LI/0HUB7fKxpK6hNinsoOw=; b=asgOlZAFPUlCwCxRPCNW4draZ9W+h6iFrQNQJ6C+EgV2efaL7bmHhhz7lrIsjT3il4 hSp3Z6a80I8AK5vGghWinnzEG0BA/bZzwVjeQex9YENjG3dRMG/rxV8Qw61eS6y3V3CR xojgdutKGHB41BRsG+0XPGLuMcw6AE1u5PLXzUNVrsh5wHhEpZLPlISZuE51QYXL1Uon qDnyPqCoRpXfYqAMqoyT355n5ze+j1zTbnNdf2T1A+C+VzqQ/x33AXEdkMrXV+B3JlVN JBzamrttwMc9P/X3eNMrwXdmi1GPut4SahNfyApdEyb2+W8DocdcfRM5Thqo+kv4dmpa C43g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710234194; x=1710838994; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=J6i3TaLouGAS+GfFlJ9J9LI/0HUB7fKxpK6hNinsoOw=; b=VFbKJ/+LqCUjxR0cr7iKZOUwrgQdzOwewyyeEz59DvCZIAHfeW//b1ZkDbqr/Exytv erwixACbmCLqORLeMJjXiOvfzFGvB4LftaLNGSOD8aV3EymT55k1QjmDcuyl1kbt/Dwy rnfHxd0swbHGuwGa+wHusF3nZxGFKGg5/1hP0//Rtax5pdWzJB8craP8Bfh+C8VAQPKD csK3BspB9CH9pjvedRTTUzBuMT1zmJh655myaZY0EVrESH4iEKI7BHxp1zcRfxsglxGv AAxiDOFDUEEMit4QhOm33ttgUsarBYrWZ491xkRQtg3sRB1DSfgF/1Sq8Hrn7x5RjVrB 1PeA== X-Forwarded-Encrypted: i=1; AJvYcCWCu4qpn/0xF8J4bk2ZUlib98i9wd/LbZRUHhNcb8MPi6fY8LC20h7+H41FSpvKgHSEJU7qX1hx85vflIzCqm6iIqH1dheVlNxqexaJ X-Gm-Message-State: AOJu0YxIOVZcvX8ZQgqfAqzCpC+csUJz3kVYwArwxJQQxVeennmeXmyF fS51JyLiTQkO2SzF9RxdYiz96Q2PegTC3txB2CqjtTuTAFkRY/y3nV+NT9xURAI= X-Received: by 2002:a17:906:11da:b0:a44:dc35:df19 with SMTP id o26-20020a17090611da00b00a44dc35df19mr2047419eja.67.1710234194076; Tue, 12 Mar 2024 02:03:14 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id hg13-20020a1709072ccd00b00a45fefe4fc5sm3576879ejc.135.2024.03.12.02.03.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:03:13 -0700 (PDT) Date: Tue, 12 Mar 2024 12:03:09 +0300 From: Dan Carpenter To: "Felix N. Kimbu" Cc: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: p80211conv: Rename local foo to decrypt_check Message-ID: <9bffd12a-afae-45cd-a4f3-451872146bf3@moroto.mountain> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 11, 2024 at 07:07:55PM +0100, Felix N. Kimbu wrote: > @@ -185,14 +185,14 @@ int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv, > p80211_wep->data = kmalloc(skb->len, GFP_ATOMIC); > if (!p80211_wep->data) > return -ENOMEM; > - foo = wep_encrypt(wlandev, skb->data, p80211_wep->data, > - skb->len, > - wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK, > - p80211_wep->iv, p80211_wep->icv); > - if (foo) { > + decrypt_check = wep_encrypt(wlandev, skb->data, p80211_wep->data, > + skb->len, > + wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK, > + p80211_wep->iv, p80211_wep->icv); With the rename the indenting did need to be updated, yes. However it should have been: decrypt_check = wep_encrypt(wlandev, skb->data, p80211_wep->data, skb->len, wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK, p80211_wep->iv, p80211_wep->icv); [tab][tab][tab][tab][tab][space][space][space][space]skb->len, See my blog for how to resend a patch: https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/ regards, dan carpenter