Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1770274ybg; Sat, 19 Oct 2019 02:08:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy7qmx8sFXunT9nP70UC0L3pMVLwfpZozxyNIUfdpXRkXZJJk8ZhbLxEV605ZcdfCYmry2 X-Received: by 2002:a05:6402:7cc:: with SMTP id u12mr14340141edy.63.1571476130763; Sat, 19 Oct 2019 02:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571476130; cv=none; d=google.com; s=arc-20160816; b=AYKb/OUS4MwH0BNatZkyz37YtvqlJ+oiSM5tMbwl+htCHy2n4QqJspycvh320ILkCj Sml+yREIX7rTEg/RbyUnSGxeOe5/mJKF9staINejSPHJRuUicFrSq8Fnq9FtOKmqMI5/ x4WvT6tKLKe2Y5JsxB1KTrrAOsHrGiUcmEmAhFwVGjfAyUk8xzCBgDIjqkwgKs1qBhfQ 7g1c8ncznyGPqXtQfMG0zKgQQpssGnvw5kArevU7EU1it2lCPX3PnIqj+OOoDQ9E5q0v qTnKYg7W7SNXpeikRPP63+uqYXuu/5QCC6WTPWrRLl5vB6M8wcz/pv/Ttj9Pn39Fcj0A q6eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tJXKGhc1AW/l0WKj0IcIOpG/c9m//aZTCOArzVW/AZw=; b=Re6GNn3DSqvGLJnO3k7as1kK8SIovb/8t9oFAQ9u1YxbsgcMAinskMy3QdFKT0K6Ub IT0LnCuUvIgIJeXeNokzef61NoznSsvPW6epmRx51xHqUnsExYAgCb33qqVdkm3r98Z1 7jFMqLOhbEya5Gwt90puUirowQ0lddknynZdrrjrW7sFUWADUDRLFSkoc5C/Kj88SNg1 fh3CbJVSVb7NjSpLyPYk3D5g4T5I8svrUSsM5od0O1V9Kk1pPjNO3rvIPbClPK2+B3mU SUFv3qowShScC4YIFVMU6ytmLdqa1MwbpqhsgdcZLjW0GLNthgZ0xfy5jzJ4bOenNeCO e/sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="s/JGYncS"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e43si6656612eda.296.2019.10.19.02.08.27; Sat, 19 Oct 2019 02:08: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="s/JGYncS"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390567AbfJRSl6 (ORCPT + 99 others); Fri, 18 Oct 2019 14:41:58 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:40686 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728350AbfJRSl6 (ORCPT ); Fri, 18 Oct 2019 14:41:58 -0400 Received: by mail-il1-f194.google.com with SMTP id o16so6447713ilq.7; Fri, 18 Oct 2019 11:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tJXKGhc1AW/l0WKj0IcIOpG/c9m//aZTCOArzVW/AZw=; b=s/JGYncSzqI2bGxfMPGTrEU6YMN+uue1Pn3GVsKkV6CewWE7VwswNVssbghypg2B5r O4iy4KgD9IPaIpFP1Uuji4WcIqDJT35onsmfK/8ZfnRxgjJsluFIvQAdyj05RUO4yYWn H7HjIFAhkdyk24buc2FvoJdcOydo3D7fY/UyXBLwK5FpIvTu7RbaQzEn9jIHuObUYlp2 oK487cyGVr2lFBqaJ2ttjFXOGKB7R4lDPOvMCsTCGzqExsRoh+Oo5Uh+Qmlt68zO8QeV YbgbC6FAgo6rUOqcP+bIWbmOMvA5jnoaldwbwttz2cDmoOkgNNZ/3xmBk/6q7AYUJ5uy PLNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tJXKGhc1AW/l0WKj0IcIOpG/c9m//aZTCOArzVW/AZw=; b=NVlGuxJfvM/8PuMo3ediHtIIALkbs332SdT1EMjA37bc3Nuc7vdCM893mKCU7R61Ck aP+bpgG7pmJxAqYRQMN1QiuIFK49KigTQLrLCmr+ZLHoGCCeAUb5CTKwa4C/T6gA81Hn QRKCcKYuowBEFXx7dJmln/crAHAwQYV7Ciaru3iks7KeP9iOWFGf2ZAF9nm3bWMs/JCg DZFqaAaPo12Gx8wwCDGIoXq5zlQqMNiqjM+guMQFlZY7KIAA4pnBgNYh0VA6BExns3hf g0p3kvrRfZSyMSwdXqjb/KN/+XIcOb4Jnim8U5E8BdX8hB4kC8+IaOZh9BGy167yjFkP 1c0w== X-Gm-Message-State: APjAAAVReqOq3wtIE6nQ51lGMW9GDaMCjgDEg/WcKvTC5/LeBOvm4W8K GRBSs7Uta27KZpIDA4otBtKNwqPj5g3p9cOnz9w= X-Received: by 2002:a92:b682:: with SMTP id m2mr11544098ill.64.1571424117434; Fri, 18 Oct 2019 11:41:57 -0700 (PDT) MIME-Version: 1.0 References: <20191015141945.16067-1-ben.dooks@codethink.co.uk> In-Reply-To: <20191015141945.16067-1-ben.dooks@codethink.co.uk> From: Sylvain Lemieux Date: Fri, 18 Oct 2019 14:41:46 -0400 Message-ID: Subject: Re: [PATCH] usb: ohci-nxp: fix use of integer as pointer To: Ben Dooks Cc: linux-kernel@lists.codethink.co.uk, Vladimir Zapolskiy , Alan Stern , Greg Kroah-Hartman , "moderated list:ARM PORT" , USB list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 15, 2019 at 10:19 AM Ben Dooks wrote: > > 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 > --- [...] > --- 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 > Acked-by: Sylvain Lemieux