Commit 8f6174bf authored by David S. Miller's avatar David S. Miller

[DECNET]: Kill warnings.

parent fa062f2c
...@@ -785,7 +785,7 @@ static int dn_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) ...@@ -785,7 +785,7 @@ static int dn_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
return -EINVAL; return -EINVAL;
#if 1 #if 1
if (!capable(CAP_NET_BIND_SERVICE) && saddr->sdn_objnum || if ((!capable(CAP_NET_BIND_SERVICE) && saddr->sdn_objnum) ||
(saddr->sdn_flags & SDF_WILD)) (saddr->sdn_flags & SDF_WILD))
return -EACCES; return -EACCES;
#else #else
......
...@@ -1393,12 +1393,12 @@ void __init dn_dev_init(void) ...@@ -1393,12 +1393,12 @@ void __init dn_dev_init(void)
#ifdef MODULE #ifdef MODULE
if (addr[0] > 63 || addr[0] < 0) { if (addr[0] > 63 || addr[0] < 0) {
printk(KERN_ERR "DECnet: Area must be between 0 and 63"); printk(KERN_ERR "DECnet: Area must be between 0 and 63");
return 1; return;
} }
if (addr[1] > 1023 || addr[1] < 0) { if (addr[1] > 1023 || addr[1] < 0) {
printk(KERN_ERR "DECnet: Node must be between 0 and 1023"); printk(KERN_ERR "DECnet: Node must be between 0 and 1023");
return 1; return;
} }
decnet_address = dn_htons((addr[0] << 10) | addr[1]); decnet_address = dn_htons((addr[0] << 10) | addr[1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment