diff options
author | Mark Stapp <mjs@voltanet.io> | 2019-10-17 15:52:51 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2019-10-17 22:08:47 +0200 |
commit | 123ea351a42cce1b5e84b4f6b7e1bc33d3b05086 (patch) | |
tree | 15346a9fd282bf8636e80dfc9e6ed70c5bb9e3e8 /nhrpd/nhrpd.h | |
parent | Merge pull request #5167 from mjstapp/test_nhrp_list_sa (diff) | |
download | frr-123ea351a42cce1b5e84b4f6b7e1bc33d3b05086.tar.xz frr-123ea351a42cce1b5e84b4f6b7e1bc33d3b05086.zip |
nhrpd: clean up SA warning
Try to signal to SA/clang more clearly to clean up an SA warning
in the nhrp-specific linkedlist code.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'nhrpd/nhrpd.h')
-rw-r--r-- | nhrpd/nhrpd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nhrpd/nhrpd.h b/nhrpd/nhrpd.h index ad38cad83..cbee5951f 100644 --- a/nhrpd/nhrpd.h +++ b/nhrpd/nhrpd.h @@ -77,8 +77,7 @@ static inline void notifier_call(struct notifier_list *l, int cmd) { struct notifier_block *n, *nn; list_for_each_entry_safe(n, nn, &l->notifier_head, notifier_entry) { - if (n) - n->action(n, cmd); + n->action(n, cmd); } } |