From: Hannes Reinecke Date: Tue, 17 Dec 2013 08:18:47 +0000 (+0100) Subject: target_core: simplify scsi_name_len calculation X-Git-Tag: v3.14-rc1~17^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ba84ca95a84dba9b42492edd2632dc3c7eb359;p=pandora-kernel.git target_core: simplify scsi_name_len calculation scsi_name_len in spc_emulate_evpd_83 is calculated twice, with the results of the first calculation discarded. So remove it. And check for the maximum allowed length, too. Signed-off-by: Hannes Reinecke Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed