scst_lib: Avoid that checkpatch reports that kfree(NULL) is safe

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6620 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-11-07 00:10:01 +00:00
parent e1b30aba0e
commit ee4c5fcd7f

View File

@@ -5924,8 +5924,7 @@ static void scst_ws_finished(struct scst_write_same_priv *wsp)
else if (wsp->ws_sg_tails && wsp->ws_sg_tails[0].sg_cnt != 0 &&
sg_page(&wsp->ws_sg_tails[0].sg[0]) != sg_page(ws_cmd->sg))
__free_page(sg_page(&wsp->ws_sg_tails[0].sg[0]));
if (wsp->ws_sg_full)
kfree(wsp->ws_sg_full);
kfree(wsp->ws_sg_full);
if (wsp->ws_sg_tails) {
for (i = 0; wsp->ws_descriptors[i].sdd_blocks != 0; i++)
if (wsp->ws_sg_tails[i].sg_cnt != 0)