From: Dan Carpenter Date: Tue, 17 Apr 2012 06:33:59 +0000 (+0300) Subject: target/iscsi: cleanup some allocation style issues X-Git-Tag: v3.5-rc1~111^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=381e309a658feadb48c14566b3b26ccb7eec75a0;p=pandora-kernel.git target/iscsi: cleanup some allocation style issues We can use kcalloc() here instead of kzalloc(). It's better style and it has overflow checking built in. Also -ENOMEM is the correct error code for allocation errors. -1 means -EPERM. None of the callers preserve the error codes so it doesn't matter except as a cleanup. Signed-off-by: Dan Carpenter Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed