Bluetooth: Add opcode to error message
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / decnet / af_decnet.c
index 4136987d94da299abb50bef85e5e360560439710..2ba1a2814c24e2260592c985706c5cbc58e45fdc 100644 (file)
@@ -250,7 +250,7 @@ static void dn_unhash_sock_bh(struct sock *sk)
 static struct hlist_head *listen_hash(struct sockaddr_dn *addr)
 {
        int i;
-       unsigned hash = addr->sdn_objnum;
+       unsigned int hash = addr->sdn_objnum;
 
        if (hash == 0) {
                hash = addr->sdn_objnamel;
@@ -1844,9 +1844,9 @@ static inline int dn_queue_too_long(struct dn_scp *scp, struct sk_buff_head *que
  * inclusion (or not) of the two 16 bit acknowledgement fields so it doesn't
  * make much practical difference.
  */
-unsigned dn_mss_from_pmtu(struct net_device *dev, int mtu)
+unsigned int dn_mss_from_pmtu(struct net_device *dev, int mtu)
 {
-       unsigned mss = 230 - DN_MAX_NSP_DATA_HEADER;
+       unsigned int mss = 230 - DN_MAX_NSP_DATA_HEADER;
        if (dev) {
                struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr);
                mtu -= LL_RESERVED_SPACE(dev);