From 934ae16baf543af03f3f521277d14524ca772d17 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 2 Nov 2015 23:07:58 +0100 Subject: proc-cmdline: return proper errors from shall_restore_state() Let's not eat up errors in shall_restore_state(), but in the consumers instead, just for the sake of keeping the library calls generic. --- src/rfkill/rfkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rfkill/rfkill.c') diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c index bb00f99ecf..5c45a3ae6c 100644 --- a/src/rfkill/rfkill.c +++ b/src/rfkill/rfkill.c @@ -212,7 +212,7 @@ static int load_state( assert(udev); assert(event); - if (!shall_restore_state()) + if (shall_restore_state() == 0) return 0; r = find_device(udev, event, &device); -- cgit v1.2.3-54-g00ecf