ソースを参照

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