Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3333312imu; Sun, 11 Nov 2018 12:35:10 -0800 (PST) X-Google-Smtp-Source: AJdET5ctIjP+IUhzndqYeqQgFvcUE3FTxTEdk/wVPqmu+sbaT78AFesolf4ZEgHBkhC5JUwF5j5c X-Received: by 2002:a17:902:5590:: with SMTP id g16-v6mr17261153pli.56.1541968510634; Sun, 11 Nov 2018 12:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968510; cv=none; d=google.com; s=arc-20160816; b=YjiWqBngFzkK3I5Sh4f0CJDQWQ7fEKk5Dz14ncPw+7vfw+2LFjnm5Fk2qpgOQFaIqB b4cT9SR6bMgWmJE5NSzLWBImqaRqXqEwrf8D8RrYxyProGhkW/ImqOyYFmQwYADIge8J 4dOXJ/CSvSyOaa2RbtB61A7pUp0WaYlH/yTiSlVA/cSL2bmXhUnlZ4MOmKX+QvPYPjKe 5TYuwwOD9bSIywvNSUkZASK0ocH6jKniJpLBza63VpsHKm5wuE5pDr2iBf6U9XsP6K7i CkuH8UVA+sRt1/2hl3KdPXUvm5lyTebnoOxvZhfBcpf/5eXyk/eLwLH6QIfkupLIbUDT c9Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=ucYcP3p2f+hYxFhPIFc526nlm2OLBrYoz00atBAWl00=; b=jApO2m5HUAqIzEncZ6rzFzza5qsbBdqeCyaeCu+MtZqJAsUDmv0c+V4FuCbCMBpHUY ecByKyGgrCoCEjxu9H6G6SlFSkX6qjVwilDk8EI3i2WTjVyrUzziKPUtXa1VmEgCbqYr 7Wu65Y100tWRSRfDiqpGRCm0teLCKkLQJpU/riLWzcMuIuFwA342ic82nqmhcBB07nVa niuqXgvlxY4nGJmus9BRD4vjt+JnUeXtJwf0ial6wsfq+F3FS7hYDROHzuckvuZwAX7B 5dzenY6YczkcFaQZcHYhzoLKPziv5XAMs5mm2Las34XUlFXnaEWNKps7Cv/xyjTQFPzz ppsw== 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 x5si14503790pgq.535.2018.11.11.12.34.55; Sun, 11 Nov 2018 12:35:10 -0800 (PST) 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 S1730388AbeKLGYI (ORCPT + 99 others); Mon, 12 Nov 2018 01:24:08 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50006 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730208AbeKLFsO (ORCPT ); Mon, 12 Nov 2018 00:48:14 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsa-0000tu-Us; Sun, 11 Nov 2018 19:58:45 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsa-0001sj-I9; Sun, 11 Nov 2018 19:58:44 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Marek Szyprowski" , "Tushar Behera" , "Greg Kroah-Hartman" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 351/366] usb: misc: usb3503: Update error code in print message In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Tushar Behera commit ec5734c41bee2ee7c938a8f34853d31cada7e67a upstream. 'err' is uninitialized, rather print the error code directly. This also fixes following warning. drivers/usb/misc/usb3503.c: In function ‘usb3503_probe’: drivers/usb/misc/usb3503.c:195:11: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized] dev_err(dev, "unable to request refclk (%d)\n", err); Signed-off-by: Tushar Behera Acked-by: Marek Szyprowski Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/misc/usb3503.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c @@ -192,7 +192,8 @@ static int usb3503_probe(struct usb3503 clk = devm_clk_get(dev, "refclk"); if (IS_ERR(clk) && PTR_ERR(clk) != -ENOENT) { - dev_err(dev, "unable to request refclk (%d)\n", err); + dev_err(dev, "unable to request refclk (%ld)\n", + PTR_ERR(clk)); return PTR_ERR(clk); }