dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/target/iscsi
Dan Carpenter 381e309a65 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 <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-05-06 15:02:33 -07:00
..
Kconfig target: iscsi_target depends on NET 2011-07-28 20:16:18 +00:00
Makefile
iscsi_target.c target/iscsi: Go back to core allocating data buffer for cmd 2012-04-14 17:40:39 -07:00
iscsi_target.h target/iscsi: Misc cleanups from Agrover (round 2) 2012-04-14 17:40:35 -07:00
iscsi_target_auth.c iscsi-target: fix chap identifier simple_strtoul usage 2011-12-14 11:28:09 +00:00
iscsi_target_auth.h
iscsi_target_configfs.c target/iscsi: Misc cleanups from Agrover (round 2) 2012-04-14 17:40:35 -07:00
iscsi_target_configfs.h
iscsi_target_core.h target/iscsi: Go back to core allocating data buffer for cmd 2012-04-14 17:40:39 -07:00
iscsi_target_datain_values.c target/iscsi: Eliminate iscsi_cmd.data_length 2012-04-14 17:40:38 -07:00
iscsi_target_datain_values.h
iscsi_target_device.c target/iscsi: Remove unneeded wrapper functions 2012-02-25 14:37:47 -08:00
iscsi_target_device.h target/iscsi: Remove unneeded wrapper functions 2012-02-25 14:37:47 -08:00
iscsi_target_erl0.c target/iscsi: Eliminate iscsi_cmd.data_length 2012-04-14 17:40:38 -07:00
iscsi_target_erl0.h
iscsi_target_erl1.c target/iscsi: Eliminate iscsi_cmd.data_length 2012-04-14 17:40:38 -07:00
iscsi_target_erl1.h
iscsi_target_erl2.c target/iscsi: Rename iscsi_cmd.i_list to iscsi_cmd.i_conn_node 2012-04-14 17:40:33 -07:00
iscsi_target_erl2.h
iscsi_target_login.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2012-03-22 12:38:04 -07:00
iscsi_target_login.h
iscsi_target_nego.c target: remove obvious warnings 2012-03-15 19:16:09 -07:00
iscsi_target_nego.h
iscsi_target_nodeattrib.c iscsi-target: remove improper externs 2012-03-17 18:07:04 -07:00
iscsi_target_nodeattrib.h
iscsi_target_parameters.c target/iscsi: Misc cleanups from Agrover (round 2) 2012-04-14 17:40:35 -07:00
iscsi_target_parameters.h
iscsi_target_seq_pdu_list.c target/iscsi: cleanup some allocation style issues 2012-05-06 15:02:33 -07:00
iscsi_target_seq_pdu_list.h target/iscsi: Fold _decide_list_to_build into _build_pdu_and_seq_lists 2012-04-14 17:40:38 -07:00
iscsi_target_stat.c target: remove useless casts 2011-12-14 11:28:07 +00:00
iscsi_target_stat.h
iscsi_target_tmr.c target/iscsi: Eliminate iscsi_cmd.data_length 2012-04-14 17:40:38 -07:00
iscsi_target_tmr.h
iscsi_target_tpg.c target: remove useless casts 2011-12-14 11:28:07 +00:00
iscsi_target_tpg.h
iscsi_target_tq.c target: Use LIST_HEAD()/DEFINE_MUTEX() for static objects 2012-02-25 14:37:46 -08:00
iscsi_target_tq.h
iscsi_target_util.c target/iscsi: Go back to core allocating data buffer for cmd 2012-04-14 17:40:39 -07:00
iscsi_target_util.h target/iscsi: Fold _decide_list_to_build into _build_pdu_and_seq_lists 2012-04-14 17:40:38 -07:00