]> asedeno.scripts.mit.edu Git - linux.git/commit
watchdog: cpwd: remove memory allocate failure message
authorAmit Kushwaha <akkushwaha9896@gmail.com>
Tue, 6 Dec 2016 18:19:48 +0000 (10:19 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 16 Dec 2016 14:53:55 +0000 (06:53 -0800)
commitb6621df5c87603310c3f94903bb30adbfeb9aa69
tree8c7fb64a26c3e6fb6137910786f97f6c934cbe19
parent72106c1894aa4e26ab403282cc7617fcb07d3d4d
watchdog: cpwd: remove memory allocate failure message

Replaced goto with a return statement and dropped the kfree()
calls because memory allocated with devm_kzalloc() is
automatically freed on driver detach

Signed-off-by: Amit Kushwaha <akkushwaha9896@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/cpwd.c