diff options
author | Zhang zhengguang <zhengguang.zhang@intel.com> | 2014-07-17 10:37:39 +0800 |
---|---|---|
committer | Zhang zhengguang <zhengguang.zhang@intel.com> | 2014-07-17 10:37:39 +0800 |
commit | 1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch) | |
tree | 6e991827d28537f7f40f20786c2354fd04a9fdad /src/detect.c | |
parent | fbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff) | |
download | connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2 connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip |
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'src/detect.c')
-rw-r--r-- | src/detect.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |