qcacmn: target_if: 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 target_if replace any such comparisons with logical operations performed on the pointer itself. Change-Id: I436bb3ec12d331df2260507b6a9afbab84a8a54f CRs-Fixed: 2418256
This commit is contained in:
@@ -1809,7 +1809,7 @@ int target_if_spectral_process_report_gen3(
|
||||
struct spectral_report report;
|
||||
|
||||
spectral = get_target_if_spectral_handle_from_pdev(pdev);
|
||||
if (spectral == NULL) {
|
||||
if (!spectral) {
|
||||
spectral_err("Spectral target object is null");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
مرجع در شماره جدید
Block a user