diff options
author | Ursula Braun | 2016-10-12 12:38:49 +0200 |
---|---|---|
committer | David S. Miller | 2016-10-13 10:59:45 -0400 |
commit | baac789832ac91d477dc3c69f8d7bf84babd74cf (patch) | |
tree | 78fb307ea3fcbd052ec03676356f9f5a7a7fc61d /drivers/s390/net | |
parent | de1dfeefefde51e781df49c80f90f1f306fd0cf5 (diff) |
s390/netiucv: get rid of one memcpy in netiucv_printuser
Save a memcpy in netiucv_printuser().
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/netiucv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index b0e8ffdf864b..88b6e9c56b4c 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/s390/net/netiucv.c @@ -302,8 +302,7 @@ static char *netiucv_printuser(struct iucv_connection *conn) if (memcmp(conn->userdata, iucvMagic_ebcdic, 16)) { tmp_uid[8] = '\0'; tmp_udat[16] = '\0'; - memcpy(tmp_uid, conn->userid, 8); - memcpy(tmp_uid, netiucv_printname(tmp_uid, 8), 8); + memcpy(tmp_uid, netiucv_printname(conn->userid, 8), 8); memcpy(tmp_udat, conn->userdata, 16); EBCASC(tmp_udat, 16); memcpy(tmp_udat, netiucv_printname(tmp_udat, 16), 16); |