From a95ea4f9eed75b4a053a2e3377be862cc4987f62 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 20 Mar 2019 12:12:59 -0700 Subject: [PATCH] qcacmn: serialization: Replace explicit comparison to NULL Per the Linux Kernel coding style, as enforced by the kernel checkpatch script, pointers should not be explicitly compared to NULL. Therefore within umac serialization replace any such comparisons with logical operations performed on the pointer itself. Change-Id: I6b8ff46dacfd2f9a883262f6336f35f5aff499bc CRs-Fixed: 2420150 --- .../serialization/src/wlan_serialization_legacy_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umac/cmn_services/serialization/src/wlan_serialization_legacy_api.c b/umac/cmn_services/serialization/src/wlan_serialization_legacy_api.c index 7e2557f0b453..328126f54c6e 100644 --- a/umac/cmn_services/serialization/src/wlan_serialization_legacy_api.c +++ b/umac/cmn_services/serialization/src/wlan_serialization_legacy_api.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -43,7 +43,7 @@ static struct wlan_objmgr_pdev *wlan_serialization_get_first_pdev( for (i = 0; i < WLAN_UMAC_MAX_PDEVS; i++) { pdev = wlan_objmgr_get_pdev_by_id(psoc, i, WLAN_SERIALIZATION_ID); - if (pdev != NULL) + if (pdev) break; }