Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5847618rwb; Tue, 1 Aug 2023 08:40:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlF9BxmmkrAoPEkUVSaxl8w25nVZAN0FLuexZPDsZcYCvzr63156YwLfMG/G9Fv6Y/xeG93e X-Received: by 2002:aa7:c582:0:b0:522:3ef1:b10 with SMTP id g2-20020aa7c582000000b005223ef10b10mr2561947edq.6.1690904440497; Tue, 01 Aug 2023 08:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690904440; cv=none; d=google.com; s=arc-20160816; b=GaUUh+XKOljY0dG3tFhU7XMW/P7E8V3iPLcHa/ubMvrMhe+dMSOS/pJdLdbTjKHxqj eP3mRKBxYpOpfMntWbAEAM65vkk5mGPAp12NZLDVuGGcbVgQTKZPZpyf6xH20NyieMB0 lPEEiTbl9yokhQDdFZc/xNDDzsToCkrLRfkz+lmQK9rBQwKfIDLNNRCYcaHi+UuCpDV6 NudwCcqqRiX/NJ9zDDkOjW5SVs+2wDk4d6PvYBXPhMyTOe8u0U1qPv+AFQjz/v2K52kd DZHCqVAcvxxZw8GID7alZvZIg8rHJ0F4OwlW9abkUycerJjuQKk9UG98XIAbAU/8d8dF ojeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5uuNfkxYesmIemPiABp4WONeX4fMNiIa9h0mEc9ZlfQ=; fh=erTgSetmbpeXd+hbGkT0bkTO0zm01ioHhSfeYUPyleM=; b=mjrZ2sHJ6lrcVvk7nGR0Zt+9AJlsMn3mv1UaXaUAb+zf4ZZa9DpV8/GljWieful/rX ca6pYj1qdDeEqf4YythIX56IxxUtpbzMX3uarfBap+ubKyb9uHBrHS9AEVEktOCCjqom qF4q3B23qFDrvvKXWn8IKRdQXPqgV0dMRPakxceMNKyoZoA/itXfb6V9Qc+sE1hzgbUX 8kNKptgp4IB8FyXyo3rhwR+5V1toXSFgU7HT6hgIl9db3ZD/6SEaF8cK9jtti0ifhR0v kep5Mg6unNq9qfpat3IZ3XlZqeUYxlcAm7n6/935M91INbunpDkxJkladKtmGtBOSnVs ZvcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ddIC4214; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020aa7ca5a000000b005221da47f59si8268922edt.172.2023.08.01.08.40.16; Tue, 01 Aug 2023 08:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ddIC4214; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232445AbjHAPER (ORCPT + 99 others); Tue, 1 Aug 2023 11:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbjHAPEQ (ORCPT ); Tue, 1 Aug 2023 11:04:16 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22ACEE65 for ; Tue, 1 Aug 2023 08:04:15 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fbc244d384so53630815e9.0 for ; Tue, 01 Aug 2023 08:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690902253; x=1691507053; 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=5uuNfkxYesmIemPiABp4WONeX4fMNiIa9h0mEc9ZlfQ=; b=ddIC42148FiD1bFz0COMhlRajuwwmXRXtSttwUupyxZT7DuOlagS/guVxTNwy0NTF4 bJHJSV96xm6m8m4X/U9hvhUOXVTemku23zEYJdxgXe+Fuol5Z5TrXpO8bMU3qNSA+7Iw 0jbgd9V6ctfOHd/ucKm/R1SWBazIqu9uSP+/a8W1mo9khCsWFVJD6yRJvtBDE3fDQDpV CTNlm2eP2hV2tgTIBgJbmZ4CpIO9Awi16CttcrTadBe1/O/kblnek/Kr0FnCNdU+E/dI DzzCOchQvmNP3gzVWF6zsox+jGyUn6UVooc65dsZqnfI+iTioTam9oMwNmOuizW12Rt3 oYSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690902253; x=1691507053; 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=5uuNfkxYesmIemPiABp4WONeX4fMNiIa9h0mEc9ZlfQ=; b=bM3NQjEtOWFkOPNwH4BWhQ10zAfjZbtqXKso/R1HCiAH/Ktyc1K5KjzLdIAUbzXgom 8z9EOf7keB8M8lxirg8g+bErbJDwN4EV9Z1HSOo/SUq8Gsqyeb+p/mgIrX+tM34f3olU A8bBV31fRXPPrzHMWzFgNzl7agKyfjWSUL3j2XtVh9hSZj/oNlj/q6atDagUFtD660eM DvWWffNKxp5OMOMeiQQbDur64jczNnw0Ici9NhW62I3+uvrd64dKceS06g9Gi8kc89xO WUHkNbY4VTzM2daHxhkZrgFOm36IloNMV7wYJC6/KK9kk3BBoqFO0DoeQ7IJxep52d/R qb5w== X-Gm-Message-State: ABy/qLYOu0qRd/mpDEkWsgpRj4nVQuSJZBBY2VXRET1IkATBnakS/cLX /INNql/i0uO1hVv42pe38ZnojQ== X-Received: by 2002:a1c:7915:0:b0:3fe:16c8:65fa with SMTP id l21-20020a1c7915000000b003fe16c865famr2596721wme.4.1690902253573; Tue, 01 Aug 2023 08:04:13 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id z13-20020a5d654d000000b00314398e4dd4sm16273770wrv.54.2023.08.01.08.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 08:04:13 -0700 (PDT) Date: Tue, 1 Aug 2023 18:04:10 +0300 From: Dan Carpenter To: Jorge Lopez Cc: hdegoede@redhat.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, thomas@t-8ch.de, ilpo.jarvinen@linux.intel.com Subject: Re: [PATCH 0/8] hp-bioscfg: Overall fixes and code cleanup Message-ID: <6c6143bd-5352-4edc-a44c-143c27fbf1cf@kadam.mountain> References: <20230731203141.30044-1-jorge.lopez2@hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 01, 2023 at 09:52:05AM -0500, Jorge Lopez wrote: > I will submit a new patch replacing 'value_len' for 'size' in line 267 > as indicated. > 'value_len' is utilized earlier in the code so we cannot remove it > completely from the function. > After replacing size then it looks like this. $ grep value_len drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c int value_len = 0; &str_value, &value_len); &str_value, &value_len); It's a write only variable. regards, dan carpenter