macsec_linux: Use NULL to clear a pointer

Avoid a sparse warning from use of a plain integer.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-11-30 17:32:35 +02:00 committed by Jouni Malinen
parent ff7f339cff
commit b82fcf06f2

View file

@ -639,7 +639,7 @@ static int do_dump(struct macsec_drv_data *drv, u8 txsa, u64 rxsci, u8 rxsa,
DRV_PREFIX "failed to communicate: %d (%s)", DRV_PREFIX "failed to communicate: %d (%s)",
ret, nl_geterror(-ret)); ret, nl_geterror(-ret));
ctx->cb_arg.pn = 0; ctx->cb_arg.pn = NULL;
out_free_msg: out_free_msg:
nlmsg_free(msg); nlmsg_free(msg);