diff options
author | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2017-09-15 14:44:55 +0900 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-11-04 14:52:39 -0700 |
commit | b5ab697c62724b3d31556d91c6f9b76d2e264e4b (patch) | |
tree | d6750ec5504fe768efccb4f417d03dcbeeafc775 /drivers/target | |
parent | c22adc0b0cbe3768619eedc240bf58d88a1d6ed7 (diff) | |
download | linux-stable-b5ab697c62724b3d31556d91c6f9b76d2e264e4b.tar.gz linux-stable-b5ab697c62724b3d31556d91c6f9b76d2e264e4b.tar.bz2 linux-stable-b5ab697c62724b3d31556d91c6f9b76d2e264e4b.zip |
target/tcmu: Use macro to call container_of in tcmu_cmd_time_out_show
This patch makes a tiny change that using TCMU_DEV in
tcmu_cmd_time_out_show so it is consistent with other functions.
Signed-off-by: Kenjiro Nakayama <nakayamakenjiro@gmail.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_user.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 8b9ec0fc91c2..2dd329773249 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1736,8 +1736,7 @@ static ssize_t tcmu_cmd_time_out_show(struct config_item *item, char *page) { struct se_dev_attrib *da = container_of(to_config_group(item), struct se_dev_attrib, da_group); - struct tcmu_dev *udev = container_of(da->da_dev, - struct tcmu_dev, se_dev); + struct tcmu_dev *udev = TCMU_DEV(da->da_dev); return snprintf(page, PAGE_SIZE, "%lu\n", udev->cmd_time_out / MSEC_PER_SEC); } |