net: lan966x: Remove a useless test in lan966x_ptp_add_trap()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 12 Dec 2022 19:37:16 +0000 (20:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Dec 2022 03:39:24 +0000 (19:39 -0800)
commitd1c722867f8022a27182b9a1d84e9bca75486c9a
treeac403302042b9167936162561898d1d2a8d7fb7f
parentc4b7a297217a22e4b36afd6d298ae9c7583ae7f9
net: lan966x: Remove a useless test in lan966x_ptp_add_trap()

vcap_alloc_rule() can't return NULL.

So remove some dead-code

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/27992ffcee47fc865ce87274d6dfcffe7a1e69e0.1670873784.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c