aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_l3.h
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2019-12-18 17:34:46 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-18 12:34:56 -0800
commit490df97142fe38f7af9ff8d4df8e9ece41df38ec (patch)
treed7ddcdd1bd48358426956f43b9ef6da0ef1f6603 /drivers/s390/net/qeth_l3.h
parents390/qeth: clean up L3 sysfs code (diff)
downloadlinux-dev-490df97142fe38f7af9ff8d4df8e9ece41df38ec.tar.xz
linux-dev-490df97142fe38f7af9ff8d4df8e9ece41df38ec.zip
s390/qeth: remove open-coded inet_make_mask()
Use inet_make_mask() to replace some complicated bit-fiddling. Also use the right data types to replace some raw memcpy calls with proper assignments. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3.h')
-rw-r--r--drivers/s390/net/qeth_l3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3.h b/drivers/s390/net/qeth_l3.h
index 2383ffad0a4a..89fb91dad12e 100644
--- a/drivers/s390/net/qeth_l3.h
+++ b/drivers/s390/net/qeth_l3.h
@@ -35,7 +35,7 @@ struct qeth_ipaddr {
union {
struct {
__be32 addr;
- unsigned int mask;
+ __be32 mask;
} a4;
struct {
struct in6_addr addr;