diff options
| author | Stephen Worley <sworley@nvidia.com> | 2022-02-15 14:05:10 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2022-03-09 18:02:44 -0500 |
| commit | b1da028e451b5b84ad1a6662fa70e4cc9123dbe4 (patch) | |
| tree | fe1538b62a4ca312639dd1e5c0bccd363eb677b8 /zebra/zebra_dplane.c | |
| parent | 4b82b9548879ad3b888fd7d8b9cea99a55260c55 (diff) | |
zebra: avoid initialization in ctx_intf_init
Avoid initialization in dplane_ctx_intf_init() so
the compiler can warn us about using unintialized data.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/zebra_dplane.c')
| -rw-r--r-- | zebra/zebra_dplane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 1ad5d93ae2..d034c8f306 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -2690,8 +2690,8 @@ done: int dplane_ctx_intf_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op, const struct interface *ifp) { - struct zebra_ns *zns = NULL; - struct zebra_if *zif = NULL; + struct zebra_ns *zns; + struct zebra_if *zif; int ret = EINVAL; bool set_pdown, unset_pdown; |
