Received: by 10.213.65.68 with SMTP id h4csp812097imn; Fri, 23 Mar 2018 17:26:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELsvSMUA221G56TZwvb9Rpkis/cdG5IeGbDYalIjYUeAcCpofiU1qLXR4IDQHSJVsU0+gCRF X-Received: by 2002:a17:902:8c94:: with SMTP id t20-v6mr22025434plo.95.1521851193988; Fri, 23 Mar 2018 17:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521851193; cv=none; d=google.com; s=arc-20160816; b=oVAty4iPmrBlsz6i6wImGW5WRXZ+GSvVN8CmFvStSQJFWNNntwCp7dytBJBL6/h9qr mwMEkrKUGXmdf45dEnFnLnZTQgGna4I/7PJ+rTBbHLuSSigrdYJ6LXX5K8kRQ4gj1lZl JJst4kSy2WoY3mbbaBXvJpKpP9lUurJwoWrF94vgm0oIBv61EQFZ6c/H+MfkWmwS7nGV 5MPlc5m+Yp4r3NOPqvKs65Fz2x71NSzWCbXKbsKcVNxSqa+T4eYJDcj0WwWBQz5zVq2U kFIBmFltc9tOgINlzmJdwC6UqNSaTd5bE9G71TjrO1j3K7Uy78Rla9ibQdktwCI8xEZ9 48bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=HXCeZthr8lIDprVEKym3BgTAftJtl18wXpb2DVaESC8=; b=RiBpCEj/h3DeJIhO7mA1g6ViPS3wOQIx/R6Lsm7XXjAko8L6/P++kcEu1rlKN43Yv4 PHsvg0jLlnnVw5hRPrGsJmEaxQwgSg2jUpaqFD4l48Yt0jbUgP+z+dROTocNBiXE/Oyi y4UE+MdNkYOBvWbHZn/aPntQAfMVC2J1IoE2Kne2Hpd/Jt1WtVC96pKivGemG83+WXJf eqlRfY6bHKxIFrlaV6WjD9FlmLKKwZjH8UoTNgYj6t7VrmEwLqt2Jdo9IDMZptkQzo/u uozI8HKCwLUwbtn27Hey1I0S2AEk6vTNNP6iRzpOpjNDGV9ji+0j4/eU2KcKe6N0HULf 8GmA== 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 63si7474732pff.224.2018.03.23.17.26.19; Fri, 23 Mar 2018 17:26:33 -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 S1751926AbeCXAZZ (ORCPT + 99 others); Fri, 23 Mar 2018 20:25:25 -0400 Received: from mga03.intel.com ([134.134.136.65]:23562 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751765AbeCXAZY (ORCPT ); Fri, 23 Mar 2018 20:25:24 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Mar 2018 17:25:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,352,1517904000"; d="scan'208";a="214381021" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga005.fm.intel.com with ESMTP; 23 Mar 2018 17:25:21 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1ezWzp-000HW0-9o; Sat, 24 Mar 2018 08:25:21 +0800 Date: Sat, 24 Mar 2018 08:24:57 +0800 From: kbuild test robot To: Tomeu Vizoso Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Felipe Balbi , Heiko Stuebner , Tomeu Vizoso , Amelie Delaunay , Minas Harutyunyan , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: Re: [PATCH v3] usb: dwc2: dwc2_vbus_supply_init: fix error check Message-ID: <201803240827.nmiIDaqS%fengguang.wu@intel.com> References: <20180322131451.12631-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180322131451.12631-1-tomeu.vizoso@collabora.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tomeu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on balbi-usb/next] [also build test WARNING on next-20180323] [cannot apply to v4.16-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Tomeu-Vizoso/usb-dwc2-dwc2_vbus_supply_init-fix-error-check/20180324-063752 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next coccinelle warnings: (new ones prefixed by >>) >> drivers/usb/dwc2/hcd.c:367:9-16: ERROR: PTR_ERR applied after initialization to constant on line 366 vim +367 drivers/usb/dwc2/hcd.c 358 359 static int dwc2_vbus_supply_init(struct dwc2_hsotg *hsotg) 360 { 361 hsotg->vbus_supply = devm_regulator_get_optional(hsotg->dev, "vbus"); 362 if (PTR_ERR(hsotg->vbus_supply) == -ENODEV) { 363 hsotg->vbus_supply = NULL; 364 return 0; 365 } else if (IS_ERR(hsotg->vbus_supply)) { > 366 hsotg->vbus_supply = NULL; > 367 return PTR_ERR(hsotg->vbus_supply); 368 } 369 370 return regulator_enable(hsotg->vbus_supply); 371 } 372 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation