[PATCH] Remove redundant NULL checks before [kv]free - in drivers/
Remove redundant NULL chck before kfree + tiny CodingStyle cleanup for drivers/ Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
9a66a53f55
commit
8f76078037
@ -305,10 +305,8 @@ mptfc_GetFcDevPage0(MPT_ADAPTER *ioc, int ioc_port,
|
||||
}
|
||||
|
||||
out:
|
||||
if (pp0_array)
|
||||
kfree(pp0_array);
|
||||
if (p0_array)
|
||||
kfree(p0_array);
|
||||
kfree(pp0_array);
|
||||
kfree(p0_array);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -1378,8 +1378,7 @@ mptsas_probe_hba_phys(MPT_ADAPTER *ioc)
|
||||
return 0;
|
||||
|
||||
out_free_port_info:
|
||||
if (hba)
|
||||
kfree(hba);
|
||||
kfree(hba);
|
||||
out:
|
||||
return error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user