mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 16:43:08 +00:00
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>
This commit is contained in:
parent
de1dfeefef
commit
baac789832
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user