lkml.org 
[lkml]   [2023]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v1 38/43] pata: cirrus: drop legacy pinctrl
Thu, Jun 01, 2023 at 08:45:43AM +0300, Nikita Shubin kirjoitti:
> Drop legacy acquire/release since we are using
> pinctrl for this now.

...

> drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL);
> - if (!drv_data) {
> - err = -ENXIO;

Wondering why it's not ENOMEM even in the original code?

> - goto err_rel_gpio;
> - }
> + if (!drv_data)
> + return -ENXIO;

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2023-06-02 03:53    [W:1.932 / U:2.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site