From e85a8f70833f01b4da5adef53221632a47d2cbe3 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 18 Mar 2019 13:44:16 -0700 Subject: [PATCH] qcacld-3.0: bmi: 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 bmi replace any such comparisons with logical operations performed on the pointer itself. Change-Id: I85578cf7e40e7d6c81246b423d5b626a9570c8b4 CRs-Fixed: 2418396 --- core/bmi/src/ol_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/bmi/src/ol_fw.c b/core/bmi/src/ol_fw.c index 482b4b7b1b7c..0cc26269ee02 100644 --- a/core/bmi/src/ol_fw.c +++ b/core/bmi/src/ol_fw.c @@ -510,7 +510,7 @@ release_fw: BMI_ERR("%s, BMI operation failed: %d", __func__, __LINE__); else BMI_INFO("transferring file: %s size %d bytes done!", - (filename != NULL) ? filename : " ", fw_entry_size); + (filename) ? filename : " ", fw_entry_size); return status; }