mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 15:30:02 +00:00
Merge pull request #5760 from ton31337/fix/shorthand_operator
zebra: Use shorthand operator in ifm_read()
This commit is contained in:
commit
8f6ebcbeb2
12
scripts/coccinelle/shorthand_operator.cocci
Normal file
12
scripts/coccinelle/shorthand_operator.cocci
Normal file
@ -0,0 +1,12 @@
|
||||
@@
|
||||
identifier data;
|
||||
constant x;
|
||||
@@
|
||||
|
||||
(
|
||||
- data = data + x
|
||||
+ data += x
|
||||
|
|
||||
- data = data - x
|
||||
+ data -= x
|
||||
)
|
@ -556,7 +556,7 @@ int ifm_read(struct if_msghdr *ifm)
|
||||
* is 12 bytes larger than the 32 bit version.
|
||||
*/
|
||||
if (((struct sockaddr *)cp)->sa_family == AF_UNSPEC)
|
||||
cp = cp + 12;
|
||||
cp += 12;
|
||||
#endif
|
||||
|
||||
/* Look up for RTA_IFP and skip others. */
|
||||
|
Loading…
Reference in New Issue
Block a user