From 1723966a65c5fd591aca85ed427e53674bae056e Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Tue, 12 Sep 2017 12:20:14 +0200 Subject: remove unnecessary guard --- src/hotkey.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/hotkey.c b/src/hotkey.c index 8e3949b..cdf8de1 100644 --- a/src/hotkey.c +++ b/src/hotkey.c @@ -88,15 +88,11 @@ compare_ctrl(struct hotkey *a, struct hotkey *b) bool same_hotkey(struct hotkey *a, struct hotkey *b) { - if(a && b) { - return compare_cmd(a, b) && - compare_shift(a, b) && - compare_alt(a, b) && - compare_ctrl(a, b) && - a->key == b->key; - } - - return false; + return compare_cmd(a, b) && + compare_shift(a, b) && + compare_alt(a, b) && + compare_ctrl(a, b) && + a->key == b->key; } unsigned long -- cgit v1.2.3