Messages in this thread |  | | From | Andy Shevchenko <> | Date | Thu, 9 Jul 2020 23:02:28 +0300 | Subject | Re: drivers/pinctrl/pinctrl-mcp23s08_spi.c:129:1-3: WARNING: PTR_ERR_OR_ZERO can be used |
| |
On Thu, Jul 9, 2020 at 9:34 PM kernel test robot <lkp@intel.com> wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 > commit: 0f04a81784fe3ddc00cae74c517265b3ddb8825c pinctrl: mcp23s08: Split to three parts: core, I涎, SPI > date: 3 months ago > config: i386-randconfig-c001-20200709 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <lkp@intel.com>
> 128 mcp->regmap = devm_regmap_init(dev, &mcp23sxx_spi_regmap, mcp, copy); > > 129 if (IS_ERR(mcp->regmap)) > 130 return PTR_ERR(mcp->regmap); > 131 > 132 return 0;
Right.
I expect LKP to generate such patches and submit :-)
-- With Best Regards, Andy Shevchenko
|  |