Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1396515pxf; Fri, 19 Mar 2021 06:28:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOXGPtAcBeeapPH41L95Sk8xczHdfWFe3zFMRBH5iSXrQvjdwbJWVbNQEZJL46qoyttJqH X-Received: by 2002:a17:906:bd2:: with SMTP id y18mr4383809ejg.482.1616160495158; Fri, 19 Mar 2021 06:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616160495; cv=none; d=google.com; s=arc-20160816; b=YHpixrH7nSzYL62pF72fcLWoneab5ncBZwLPMQoaxfwD0OYXmAPuLnZ7fUyHoGp2mB cfAimxWyrxMsfhPh41bf5b0va22wQDtAjHO1HcDbb8MOksmbJYA+6CGY0Ke2pC15hnte fvSEGvyruXED2vAWYFbVTuZuTgf+iWrLr7P79Ve4OQW+Zc0R4e4KHAG1jfsIE4uaontq tV1wT4S9kSL8j8GLVqsgGFdvAc5iYxliCWhPYeNQdZgXcUPOnDgXroIJZKeEBZDSzGPp MrnfDBpHHD6hDRnRYTXYaRzfFRPBCSRv8wbSToqpEe/uTVdiYTTcTBBnrQrHKpZGbYf9 tu+g== 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:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=+v7gHA3gjB+NCQBo13OJF2196zTJauBDaf2gc0s5kKg=; b=fLhTIzaI/kjL/xukYK6cYhksxbXsqHK+IEsVcsD848lKdj6xoNKn2Zk/RLpzzMD/GJ ePwortojClE/aq+bJ9dckbbiIsEUEp6MAjkipSvQmC1BI2tv4+sW5Cb+Hs6SCM7kTCI+ 5BEy3TkQr52USBrgew5RZcYcmiodNvbX6XmSJnceKutlIjZTlSNp1W+XaXL+fS+wXSSG L9C5nZN59osV8ODK7RCynP7GgBg9Turz8LAXt/HtAxtuohLiqrKmGTy5k5vXsdsk4FCD /VC0oHv97lKkpuO+BeLKiS1ttvDXEb+TESKHoZjeZ1ZpSZtK45UMAYv4Znq3jJuwLrX7 bXPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k20QHGRl; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si4257313ejp.154.2021.03.19.06.27.51; Fri, 19 Mar 2021 06:28:15 -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=@kernel.org header.s=k20201202 header.b=k20QHGRl; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbhCSN0z (ORCPT + 99 others); Fri, 19 Mar 2021 09:26:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:46642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbhCSN0q (ORCPT ); Fri, 19 Mar 2021 09:26:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF69E64EF2; Fri, 19 Mar 2021 13:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616160406; bh=+fFLKenKDfFeW/qha9ZQ83ZON/mz8Oj9IJEDQuJvrCc=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=k20QHGRlxLhsxwVdeGjZTYuDtCq3g/9WW0Etj1eZALfIaJqpydHHN5V0QHaua20UN uJNYfcvgYwJXh1A9xlScmNYEdxgxeXkU0eiwKSabHMpd8jKDLMElFs4Bi28kL0T5Pk 8iLsvknlWjAJCW4AVOZoVGEojkPrQePvopUx0+wLxB0no7DHC5sYQ5Vbn+TDxDbsWV t0HOa2hTWJtSmlqCeCJHVY+Hx19xGmYbQa4JJxaqMbHn3Wz1Yn6Bvmd8IZVCD5+xwH oLv+N9pTavFf2m2UOIw1Kvw27TinpQHYSJzbbWiZVc8rCDewWwRhyeljrElD2cKoG2 seyGZoC6EUHYg== Date: Fri, 19 Mar 2021 14:26:43 +0100 (CET) From: Jiri Kosina To: Dan Carpenter cc: Michael Zaidman , Benjamin Tissoires , linux-i2c@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] HID: ft260: fix an error message in ft260_i2c_write_read() In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Mar 2021, Dan Carpenter wrote: > The "len" variable is uninitialize. > > Fixes: 6a82582d9fa4 ("HID: ft260: add usb hid to i2c host bridge driver") > Signed-off-by: Dan Carpenter > --- > drivers/hid/hid-ft260.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/hid/hid-ft260.c b/drivers/hid/hid-ft260.c > index 047aa85a7c83..a5751607ce24 100644 > --- a/drivers/hid/hid-ft260.c > +++ b/drivers/hid/hid-ft260.c > @@ -512,7 +512,8 @@ static int ft260_i2c_write_read(struct ft260_device *dev, struct i2c_msg *msgs) > struct hid_device *hdev = dev->hdev; > > if (msgs[0].len > 2) { > - hid_err(hdev, "%s: unsupported wr len: %d\n", __func__, len); > + hid_err(hdev, "%s: unsupported wr len: %d\n", __func__, > + msgs[0].len); > return -EOPNOTSUPP; > } Applied, thanks Dan. -- Jiri Kosina SUSE Labs