Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5942853ybp; Tue, 15 Oct 2019 07:20:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPShaZbLNqA9d9/dEMwNoMt/VbQYJA+PdGWQFZ93y+ZNKf7xtr4HNUbfXJhL2ORlM9QBHz X-Received: by 2002:a17:907:20c5:: with SMTP id qq5mr34248166ejb.96.1571149250159; Tue, 15 Oct 2019 07:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571149250; cv=none; d=google.com; s=arc-20160816; b=joRmKnNEcve/a9DfvWki3ngQYXZCAd9O034+AchVpxbIoVK0rFUJpKqEV7p3DfAFQ3 A3rgArT0/UN20zBmX6dTf88VzMMKzJIQORScM6cZ8gcGsf/FpUeHED7E2sg2jpOBNKM+ ZCvTjSpPgVAWfaCN+Sd3sRUVrztF83tWgszRlOWPoWEbJ74Kcc2g69v0XmJFCAd05azs uPLQwcYSarAAqDk0uSsdETV2dcpawx57vvnV8QZ6RJ9zhsON2RZUyCsdizKgUNc/i8cw sxfbUaPdD573TjR4IlqBn7smqGbDkjRwlWZXaIvcPMq11RdO/I88/IGECjVi8Ta2qfEi FT0Q== 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=3JHdKDR6/trvc7WfJ2Syg9+4I5NwtwTRKF/DeQlZc7o=; b=wLuLDbZYV3vASwK3r5peCyWvmAN+Gp/pTt2C9EJF4gOqFI0fxAGw2vWqXlUO2CZghT ZmH5sVWqy5h4Wknde4B3JyQVXE4UUoqazrQTmtIoOVpDnxVjSB6xulZiW/v4KRcwR5ju 0+DO0IVpH4WPtsb5jNFgl7v3RVVLKt5to4LE+rhoIzwmnH3Wslih5TTHXN+cBNLx1iAb m0XL7JYQ7nbQxsVHaWjQAXSHfm0qlEQPZokPwmjjtPBBS3CTEC8/n6u9o4l9h4cgtJ9C gxekqmQ49vmZubTUp0VKOtFjY9ZbXr56yLFPa7VlLIKktsye+2uGFpDea2LXr33/VUSm mrFw== 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=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si13502954ejf.278.2019.10.15.07.20.26; Tue, 15 Oct 2019 07:20:50 -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=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732581AbfJOOT4 (ORCPT + 99 others); Tue, 15 Oct 2019 10:19:56 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:49897 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730697AbfJOOT4 (ORCPT ); Tue, 15 Oct 2019 10:19:56 -0400 Received: from [167.98.27.226] (helo=rainbowdash.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iKNfv-0004bb-Dk; Tue, 15 Oct 2019 15:19:47 +0100 Received: from ben by rainbowdash.codethink.co.uk with local (Exim 4.92.2) (envelope-from ) id 1iKNfv-0004Bu-36; Tue, 15 Oct 2019 15:19:47 +0100 From: Ben Dooks To: linux-kernel@lists.codethink.co.uk Cc: Ben Dooks , Vladimir Zapolskiy , Sylvain Lemieux , Alan Stern , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: ohci-nxp: fix use of integer as pointer Date: Tue, 15 Oct 2019 15:19:45 +0100 Message-Id: <20191015141945.16067-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The hcd pointer in ohci_hcd_nxp_probe() is being initialised with a 0, so fix to NULL to avoid the following sparse warning: drivers/usb/host/ohci-nxp.c:153:31: warning: Using plain integer as NULL pointer Signed-off-by: Ben Dooks --- Cc: Vladimir Zapolskiy Cc: Sylvain Lemieux Cc: Alan Stern Cc: Greg Kroah-Hartman Cc: linux-arm-kernel@lists.infradead.org Cc: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/usb/host/ohci-nxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index c561881d0e79..85878e8ad331 100644 --- a/drivers/usb/host/ohci-nxp.c +++ b/drivers/usb/host/ohci-nxp.c @@ -150,7 +150,7 @@ static void ohci_nxp_stop_hc(void) static int ohci_hcd_nxp_probe(struct platform_device *pdev) { - struct usb_hcd *hcd = 0; + struct usb_hcd *hcd = NULL; const struct hc_driver *driver = &ohci_nxp_hc_driver; struct resource *res; int ret = 0, irq; -- 2.23.0