Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1446547
| From | Alexandre Belloni <alexandre.belloni@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] rtc: m41t80: use devm_add_action_or_reset() |
| Date | 2016-07-19 17:40 +0200 |
| Message-ID | <rWFhL-5LH-5@gated-at.bofh.it> (permalink) |
| References | <rQW1X-4FR-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 03/07/2016 at 21:18:58 +0100, Sudip Mukherjee wrote : > If devm_add_action() fails we are explicitly calling the cleanup to free > the resources allocated. Lets use the helper devm_add_action_or_reset() > and return directly in case of error, as we know that the cleanup function > has been already called by the helper if there was any error. > > Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> > --- > drivers/rtc/rtc-m41t80.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] rtc: m41t80: use devm_add_action_or_reset() Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-07-19 17:40 +0200
csiph-web