From e37b81fa945fcc41ddaee2a338a666c5736724a7 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 9 May 2011 15:32:38 +0200 Subject: [PATCH] Remove not needed NULL check in link_key_notify get_connection() always returns valid pointer so conn cannot be NULL. --- plugins/hciops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hciops.c b/plugins/hciops.c index 2c49e35fe..fdbf523e7 100644 --- a/plugins/hciops.c +++ b/plugins/hciops.c @@ -962,7 +962,7 @@ static void link_key_notify(int index, void *ptr) /* Some buggy controller combinations generate a changed * combination key for legacy pairing even when there's no * previous key */ - if ((!conn || conn->rem_auth == 0xff) && old_key_type == 0xff) + if (conn->rem_auth == 0xff && old_key_type == 0xff) key_type = 0x00; else if (old_key_type != 0xff) key_type = old_key_type; -- 2.47.3