浏览代码

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
Jeff Johnson 6 年之前
父节点
当前提交
e85a8f7083
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/bmi/src/ol_fw.c

+ 1 - 1
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;
 }