Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp186475imm; Wed, 12 Sep 2018 21:05:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZl12XObt5miSzLAVzl3rcFeurbzGveK4CPVLlhmIy51z4xms8VBjkOSAYewpjMUy7aQ+Q5 X-Received: by 2002:a17:902:6bc8:: with SMTP id m8-v6mr5337323plt.162.1536811502483; Wed, 12 Sep 2018 21:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536811502; cv=none; d=google.com; s=arc-20160816; b=H57FTt2vyGhMFU+AWz9+1hz84AnnhmO4BZ8T3/aFzKFyKccFiH/6mdiTD2n0PITELF V2Inr59FBg/sBE1AHct1jCV4thriZCzP2A8Cu5u+fn0FUBvGkmmtxpy+L5clJ99DhYiV Qj+27xPlH0md8UVDMjAoKgs9mBsHxPiUEpaNXCioHzQTG59MAkqbNj6jJ8+cuOIkeUkM fhnQ8v5fA0ihe9Mt3Y0v83/X9LLH5E1XIcXjaXrRLXghOIHwR/wZr+HuHGnujPS+GAyw 5SyHoF2dtxMbkc2cPnxkf+/y6EdYkTtuv2WvBiho++W3SZ/avuuRQ/mXzOM6r2CkgEvO lzng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MdEnA9IMB3ZaLp7iGXHYF1Wi2KvComxligR12freSkM=; b=sXoU3sRUZf6YD43aIDlncpCHemZ8jHaQ9bdJyvq+C7DSSV2D5aDF8qfPhKdrJK2OcM 7p/VHCZXk93r5R9+5BhgNcgM1Xeng37M/Ya5KNLbtpJh8iikvSkh410ija4xNI9Dv/hP BVXzVmT+Ztd2v20693UQtTFJSfR5cp3NxriHlVJRIoVyYxpiZ/KO7SG0Q/KHxWo4KH/E oLuf9qXhuN4twKG8pcBP9xNflJgbxrV0G/DELN7DtE8m26TMnVD6UTL5LO/wgdZqLAlW BWnRMu0qhYPXnw0i+MijEK6Cj3DguFvJcF1aItp2FvF4OFOnNM+Yzt66BgGjvqhPznEF wlmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8-v6si3071509pgh.675.2018.09.12.21.04.47; Wed, 12 Sep 2018 21:05:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbeIMJMU (ORCPT + 99 others); Thu, 13 Sep 2018 05:12:20 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41712 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726364AbeIMJMU (ORCPT ); Thu, 13 Sep 2018 05:12:20 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 387412D27ECC6; Thu, 13 Sep 2018 12:04:37 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.399.0; Thu, 13 Sep 2018 12:04:34 +0800 From: zhong jiang To: , CC: , Subject: [PATCH] HID: logitech: fix a used uninitialized GCC warning Date: Thu, 13 Sep 2018 11:52:19 +0800 Message-ID: <1536810739-27342-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following compile warning: drivers/hid/hid-logitech-hidpp.c: In function ‘hi_res_scroll_enable’: drivers/hid/hid-logitech-hidpp.c:2714:54: warning: ‘multiplier’ may be used uninitialized in this function [-Wmaybe-uninitialized] hidpp->vertical_wheel_counter.resolution_multiplier = multiplier; Signed-off-by: zhong jiang --- drivers/hid/hid-logitech-hidpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index 5f0c080..83c43dd 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -2696,7 +2696,7 @@ static int hi_res_scroll_look_up_microns(__u32 product_id) static int hi_res_scroll_enable(struct hidpp_device *hidpp) { int ret; - u8 multiplier; + u8 uninitialized_var(multiplier); if (hidpp->quirks & HIDPP_QUIRK_HI_RES_SCROLL_X2121) { ret = hidpp_hrw_set_wheel_mode(hidpp, false, true, false); -- 1.7.12.4