]> git.baikalelectronics.ru Git - kernel.git/commit
target: Drop bogus ERR_PTR usage in target_fabric_configfs_init
authorDan Carpenter <error27@gmail.com>
Mon, 13 Jun 2011 20:10:49 +0000 (23:10 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 24 Jun 2011 00:03:51 +0000 (00:03 +0000)
commitcaf87c38f8ab308caceffb7f47f227b3894ccda5
tree6388265637ceb3420ab114579bd56eac43f85ca6
parent328fe1ba02f9681bfd2532adb88c9ff7866f0e15
target: Drop bogus ERR_PTR usage in target_fabric_configfs_init

In the original code, there were several places inside the
target_fabric_configfs_init() function that returned NULL on error
and one place the returned an ERR_PTR.  There are two places that
call this function and they only check for NULL returns; they don't
check for ERR_PTRs.  So I've changed the ERR_PTR so now the function
only returns NULL on error.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c