Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1793576rdf; Sun, 5 Nov 2023 14:56:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlkpl8nDmE3wAmJauzfC2oOyadq0zqjyzpa0r/YzJaib00T9No4eGphhHeOBHAH11o69M1 X-Received: by 2002:a17:903:1104:b0:1ca:29f:4b06 with SMTP id n4-20020a170903110400b001ca029f4b06mr33239417plh.2.1699224990543; Sun, 05 Nov 2023 14:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699224990; cv=none; d=google.com; s=arc-20160816; b=JDiDdKDirbEsGZDh94I2Aihx/Koe6LJ8/lVUrZEhktyTE2TW0yp/gm+/XDc8ggWOFm q74yp8reC5/rT+gjX2hiPmprtrj3oUU2dDEIXHJ1b8n6ufj9rofW1LXbhuwYMCzqP6M0 Y/G5ef7EnTJw/GhiqoV/+VwphHrjEVTrYO5uPxocdHi7YK6cPtbX6SXsUgvPlNahwRbL xjZFhkrjD8CH4r+NzBqlZKu+yPh14bBDIL8ZxQMsdUA9HJ2AXbs4d5Yt1U93nq0H2zIj oeQVoZ7p8ve7LpIuBeqzt1japT4Ouyan7S8pdbA17T3Xsf4B6fFFAznZ/gzjwu3TiwHs UD8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=BmKouZmZD2oA2wKKyTwBO38CA3p2KV+l6HWrITDlUJY=; fh=MQKibY1gp03oHfoDc5Rz7YuTEvyytF8k3oA40d6PJLM=; b=KukznJD/Vxb8+BoFLNU+9wQzSNJzoCTXlAE0B/57QA/hnjdRLEBBER55ENi0gx2SSl 1zqrmC/jTpOVYgfQittc1HTqQrFyW2fbotKMNGL5BIgDbmJBjcHL/AYcxAC7pdC2hegN pM1aUQ6z3bwv+WEzgLvTkn5iciEFPW/9WIUPHuVnv+IcLGX7ruXSN5o2SOG15CScdrl8 B2aF9RXnU9D2VigckuHrm2QIH7ndKRrZZpEVvvUSobj1nTSeITCpPIGx8w1loCztxYqw DDSMzOqc1eDQY4MfT7Bnx08GJPBy7ux0Mi6IuLluG241FIx9ivlWEe+7UNo4hHF1wHkT qayg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=AO6vOEIp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h18-20020a170902f2d200b001c4749ee72csi6246962plc.503.2023.11.05.14.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 14:56:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=AO6vOEIp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EEDE7807C879; Sun, 5 Nov 2023 14:56:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbjKEW4C (ORCPT + 99 others); Sun, 5 Nov 2023 17:56:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbjKEW4A (ORCPT ); Sun, 5 Nov 2023 17:56:00 -0500 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CCDCB3 for ; Sun, 5 Nov 2023 14:55:58 -0800 (PST) Received: from [192.168.68.112] (ppp14-2-79-67.adl-apt-pir-bras31.tpg.internode.on.net [14.2.79.67]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 3F79220075; Mon, 6 Nov 2023 06:55:56 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1699224956; bh=BmKouZmZD2oA2wKKyTwBO38CA3p2KV+l6HWrITDlUJY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=AO6vOEIpB+RjBLjYHeCdrlWhQ1Ul3OXNUGjGEj48y64XyFQfC76q7qqYdrQqgHfRW P4ZAEBLswmawe5Ei45jvDKCm/eyLwHNpFmQWLfipn4mg4swYFOflv1azfPv7bKxuoH cebk++wB8RlNzkYqG3s+2bs5IufqCWBpFHxBQKcEVBMtDyG38NdytLEVl0NreDd9ZU dbThXQTsuQhzlsXsI1gvUwuGHaf7EXwwR9JXov880ch8vvkadoClxdqVeewERl+rCc NXJT0MPoIkMOlJSHURXr7jpdqHE9x+4sSUiegTdLrtHuS2bM/1holF0YHEuwONLrzb GeTdAlxlxQpkw== Message-ID: <7318575f6a5715c4c77ff56e616dfde7877e101a.camel@codeconstruct.com.au> Subject: Re: [PATCH 06/10] ipmi: kcs_bmc: Integrate buffers into driver struct From: Andrew Jeffery To: Jonathan Cameron Cc: minyard@acm.org, openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, aladyshev22@gmail.com, jk@codeconstruct.com.au Date: Mon, 06 Nov 2023 09:25:55 +1030 In-Reply-To: <20231103144559.00003faf@Huawei.com> References: <20231103061522.1268637-1-andrew@codeconstruct.com.au> <20231103061522.1268637-7-andrew@codeconstruct.com.au> <20231103144559.00003faf@Huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 05 Nov 2023 14:56:09 -0800 (PST) On Fri, 2023-11-03 at 14:45 +0000, Jonathan Cameron wrote: > On Fri, 3 Nov 2023 16:45:18 +1030 > Andrew Jeffery wrote: >=20 > > Consolidate several necessary allocations into one to reduce the number > > of possible error paths. > >=20 > > Signed-off-by: Andrew Jeffery > Gets rid of some of the devm_kfree() fun, so I'm in favor of the change := ) >=20 > One trivial comment inline. >=20 > Reviewed-by: Jonathan Cameron Thanks. > > @@ -478,19 +476,15 @@ static int kcs_bmc_ipmi_add_device(struct kcs_bmc= _device *kcs_bmc) > > =20 > > spin_lock_init(&priv->lock); > > mutex_init(&priv->mutex); > > - > Unrelated change... Ack, will drop in v2.