]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: pi433: pi433_if.c remove SET_CHECKED macro
authorNguyen Phan Quang Minh <minhnpq16@gmail.com>
Fri, 8 Dec 2017 10:43:19 +0000 (11:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2017 15:31:35 +0000 (16:31 +0100)
commit038a5b4eb3f36a10170e15b34e583ad7c362df26
tree6c0f2d8675630caeeda8286c3521d7ed37c257b3
parent985f0589b9dad98ff032c8a833611e4004cbfd21
staging: pi433: pi433_if.c remove SET_CHECKED macro

The macro calls its argument -a function- twice, makes the calling
function return prematurely -skipping resource cleanup code- and hurts
understandability.

Signed-off-by: Nguyen Phan Quang Minh <minhnpq16@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c