diff options
author | Stefan Raspl <raspl@linux.ibm.com> | 2022-07-25 16:09:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-27 13:24:42 +0100 |
commit | 0a2f4f9893c83bd722bd55a903fb682da2eb24ba (patch) | |
tree | f91395f47b473f3390369f8508f808e3efae247f /net/smc | |
parent | eb481b02bd182a96e22070895bf887277b82150f (diff) | |
download | lwn-0a2f4f9893c83bd722bd55a903fb682da2eb24ba.tar.gz lwn-0a2f4f9893c83bd722bd55a903fb682da2eb24ba.zip |
s390/ism: Cleanups
Reworked signature of the function to retrieve the system EID: No plausible
reason to use a double pointer. And neither to pass in the device as an
argument, as this identifier is by definition per system, not per device.
Plus some minor consistency edits.
Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Wenjia Zhang < wenjia@linux.ibm.com>
Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
-rw-r--r-- | net/smc/smc_ism.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c index c656ef25ee4b..e51c0cdff8e0 100644 --- a/net/smc/smc_ism.c +++ b/net/smc/smc_ism.c @@ -429,7 +429,7 @@ int smcd_register_dev(struct smcd_dev *smcd) if (list_empty(&smcd_dev_list.list)) { u8 *system_eid = NULL; - smcd->ops->get_system_eid(smcd, &system_eid); + system_eid = smcd->ops->get_system_eid(); if (system_eid[24] != '0' || system_eid[28] != '0') { smc_ism_v2_capable = true; memcpy(smc_ism_v2_system_eid, system_eid, |