Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2335993imm; Mon, 24 Sep 2018 02:32:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbKsFtz/rMi7Qe7yB1ItUo6XX7oqP/n9MMu5UJgQxPlO3AVmupM3ScC/Zxkg4ALPUH33sDo X-Received: by 2002:a62:6cc6:: with SMTP id h189-v6mr9615260pfc.23.1537781530568; Mon, 24 Sep 2018 02:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537781530; cv=none; d=google.com; s=arc-20160816; b=GSG3NM0PjSAp5OFil6M02UtGEk5C6Howni/pw5Vyl7AekzVceDgC2HHGRuKDvVuRwZ 6dHrI3DapwN0FSmIENwqvJifRD5pQD48YmI4wvDKLVgbfySGGDVnH6HwvFCdgFCX7pgR fLQrl8an9zYQ7UvZuvfCRklaVqvXasJwWJa4nK1mU7N1SEkHwW5z5uza1+d650hQ25uA 4khRfUlR/62HziZqiCCLyrn/NOhYOx5ZYV8GCybYTjQjWB8jzN/dwkBEOZYeDExNc4On 5l/rUOT58xPxX5IwsikbcEFyLyk+KDI5e7NbhSg37VsEB2FlAirwYL3Erm7e1q5sFlae RGQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=68BO8+3V7kbUK0QI8mCqTXdQQ+SU087eMlDGZye5xzY=; b=Y2/IKv+HJTwijwwVPCn5Ud3qYVfzAArTiGPZbWZnegkAH0wncfLvCSAT45CMKcehDX 3vv3TZFjbNyjpxsuK7n0ew9T2noRnfjpHMSB/hmlYMZCWx3q27BJMOsrlX7omBFx8JlD jMB30qcX5u1a0qzkxvxqmC8+xQazSk6KIIOKOA8i2UctvozXT0F5xYh+nl+ACf22rAtR 0T7NW3C7+S08kll3droezL2q72oqjuaBRy+v6xc48XcL1voFmMKB/KjlyOdPM+yRVpOv a47KCd3KtwLKyNQJO+MRwOcfcpI9UXm+vx5jnQAsvWUSYkadaI4oVnNScG3htvAgT6xU jvaw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e30-v6si8741800pgn.594.2018.09.24.02.31.54; Mon, 24 Sep 2018 02:32:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728365AbeIXPc5 (ORCPT + 99 others); Mon, 24 Sep 2018 11:32:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:36074 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726133AbeIXPc5 (ORCPT ); Mon, 24 Sep 2018 11:32:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9DD4BAEFD; Mon, 24 Sep 2018 09:31:46 +0000 (UTC) Date: Mon, 24 Sep 2018 11:31:45 +0200 (CEST) From: Jiri Kosina To: zhong jiang cc: benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] HID: logitech: fix a used uninitialized GCC warning In-Reply-To: <1536824470-36659-1-git-send-email-zhongjiang@huawei.com> Message-ID: References: <1536824470-36659-1-git-send-email-zhongjiang@huawei.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Sep 2018, zhong jiang wrote: > 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 > --- > v1->v2: > According to Benjamin's suggestion, To initialize the value > and remove the duplicated assignement. Applied to for-4.20/logitech-highres. Thanks, -- Jiri Kosina SUSE Labs