From: Joern Engel Date: Tue, 16 Sep 2014 20:23:18 +0000 (-0400) Subject: qla_target: improve qlt_unmap_sg() X-Git-Tag: fixes-against-v3.18-rc2~19^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b6721a9cef94908467abf7a2cacbd15a7d23cb;p=pandora-kernel.git 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 Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed