diff options
| author | Vladimir Oltean <[email protected]> | 2021-10-26 14:27:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-10-27 13:54:02 +0000 |
| commit | 9574fb558044ce99cba8a9f062a4c9de9817d8ba (patch) | |
| tree | c4523ffb5fc9369084e85284f4850f5af0e0e736 /net/switchdev/switchdev.c | |
| parent | net: bridge: rename br_fdb_insert to br_fdb_add_local (diff) | |
| download | kernel-9574fb558044ce99cba8a9f062a4c9de9817d8ba.tar.gz kernel-9574fb558044ce99cba8a9f062a4c9de9817d8ba.zip | |
net: bridge: reduce indentation level in fdb_create
We can express the same logic without an "if" condition as big as the
function, just return early if the kmem_cache_alloc() call fails.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
