lkml.org 
[lkml]   [2023]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v1 38/43] pata: cirrus: drop legacy pinctrl
From
On 6/2/23 10:52, andy.shevchenko@gmail.com wrote:
> 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?

Indeed...

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

--
Damien Le Moal
Western Digital Research

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