[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:
Jesper Juhl
2006-06-27 02:55:06 -07:00
committed by Linus Torvalds
parent 9a66a53f55
commit 8f76078037
8 changed files with 19 additions and 38 deletions

View File

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

View File

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