summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-04-17 09:33:59 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2012-05-06 15:02:33 -0700
commit381e309a658feadb48c14566b3b26ccb7eec75a0 (patch)
treebebfccfbb0353296a9b2d5c3f8e563341296d0e9 /net/lapb/lapb_timer.c
parentbfb79eac2026b411df9e253a9c350039b4b04bb7 (diff)
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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions