mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
scsi: target: use ISCSI_IQN_LEN in iscsi_target_stat
Move the ISCSI_IQN_LEN definition up, so that it can be used in more places instead of a hardcoded value. Signed-off-by: David Disseldorp <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
3bccfba831
commit
df711553f4
3 changed files with 7 additions and 7 deletions
|
|
@ -328,10 +328,10 @@ static ssize_t iscsi_stat_tgt_attr_fail_intr_name_show(struct config_item *item,
|
|||
{
|
||||
struct iscsi_tiqn *tiqn = iscsi_tgt_attr_tiqn(item);
|
||||
struct iscsi_login_stats *lstat = &tiqn->login_stats;
|
||||
unsigned char buf[224];
|
||||
unsigned char buf[ISCSI_IQN_LEN];
|
||||
|
||||
spin_lock(&lstat->lock);
|
||||
snprintf(buf, 224, "%s", lstat->last_intr_fail_name[0] ?
|
||||
snprintf(buf, ISCSI_IQN_LEN, "%s", lstat->last_intr_fail_name[0] ?
|
||||
lstat->last_intr_fail_name : NONE);
|
||||
spin_unlock(&lstat->lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue