netif_get_by_index() returns NULL if idx is NETIF_NO_INDEX. So remove the superfluous NETIF_NO_INDEX checking for msg->msg.jl.if_idx before calling netif_get_by_index(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>