lkml.org 
[lkml]   [2011]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH] NFC: Driver for Inside Secure MicroRead NFC chip
>> +free_irq:
>> + free_irq(client->irq, info);
>> +free_buf:
>> + kfree(info->buf);
>> +free_info:
>> + kfree(info);
>> +
>> + dev_info(&client->dev, "Not probed.");
>> + return ret;
>> +}
>
>When respinning, you could consider using managed devices
>(devm_*); this error path could completely go then.

Well, to be honest I did't know about that 'feature' :), but now I see it's pretty nice. Will start to use it.

Thanks,
Waldek



\
 
 \ /
  Last update: 2011-03-18 17:45    [W:0.096 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site