hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/net/decnet/dn_table.c
....@@ -156,7 +156,7 @@
156156 default:
157157 printk(KERN_DEBUG "DECnet: dn_rehash_zone: BUG! %d\n",
158158 old_divisor);
159
- /* fall through */
159
+ fallthrough;
160160 case 256:
161161 new_divisor = 1024;
162162 new_hashmask = 0x3FF;
....@@ -348,7 +348,8 @@
348348 struct rtnexthop *nhp;
349349 struct nlattr *mp_head;
350350
351
- if (!(mp_head = nla_nest_start(skb, RTA_MULTIPATH)))
351
+ mp_head = nla_nest_start_noflag(skb, RTA_MULTIPATH);
352
+ if (!mp_head)
352353 goto errout;
353354
354355 for_nexthops(fi) {