OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de1dfee
)
s390/netiucv: get rid of one memcpy in netiucv_printuser
author
Ursula Braun
<ubraun@linux.vnet.ibm.com>
Wed, 12 Oct 2016 10:38:49 +0000
(12:38 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 13 Oct 2016 14:59:45 +0000
(10:59 -0400)
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>
drivers/s390/net/netiucv.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/netiucv.c
b/drivers/s390/net/netiucv.c
index
b0e8ffd
..
88b6e9c
100644
(file)
--- 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);