OSDN Git Service

qla_target: improve qlt_unmap_sg()
authorJoern Engel <joern@logfs.org>
Tue, 16 Sep 2014 20:23:18 +0000 (16:23 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 1 Oct 2014 21:39:29 +0000 (14:39 -0700)
commitf9b6721a9cef94908467abf7a2cacbd15a7d23cb
treec480d2a154ffe68f5dc7f57011b26414241be600
parent55a9066fffd2f533e7ed434b072469ef09d6c476
qla_target: improve qlt_unmap_sg()

Remove the inline attribute.  Modern compilers ignore it and the
function has grown beyond where inline made sense anyway.
Remove the BUG_ON(!cmd->sg_mapped), and instead return if sg_mapped is
not set.  Every caller is doing this check, so we might as well have it
in one place instead of four.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/qla_target.c