From 1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 Mon Sep 17 00:00:00 2001 From: Zhang zhengguang Date: Thu, 17 Jul 2014 10:37:39 +0800 Subject: Imported Upstream version 1.24 --- src/detect.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/detect.c') diff --git a/src/detect.c b/src/detect.c index 5bf44af1..6c039206 100644 --- a/src/detect.c +++ b/src/detect.c @@ -2,7 +2,7 @@ * * Connection Manager * - * Copyright (C) 2007-2012 Intel Corporation. All rights reserved. + * Copyright (C) 2007-2013 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -67,11 +67,11 @@ static void detect_newlink(unsigned short type, int index, } device = find_device(index); - if (device != NULL) + if (device) return; device = connman_device_create_from_index(index); - if (device == NULL) + if (!device) return; if (connman_device_register(device) < 0) { @@ -90,7 +90,7 @@ static void detect_dellink(unsigned short type, int index, DBG("type %d index %d", type, index); device = find_device(index); - if (device == NULL) + if (!device) return; device_list = g_slist_remove(device_list, device); -- cgit v1.2.3