ieee802154: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Alexander Aring <alex.aring@gmail.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Harry Morris <h.morris@cascoda.com> Cc: linux-wpan@vger.kernel.org Cc: netdev@vger.kernel.org Acked-by: Stefan Schmidt <stefan@datenfreihafen.org> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
35dc61ebfc
commit
7e174a49bb
@@ -3019,14 +3019,7 @@ static int ca8210_test_interface_init(struct ca8210_priv *priv)
|
||||
priv,
|
||||
&test_int_fops
|
||||
);
|
||||
if (IS_ERR(test->ca8210_dfs_spi_int)) {
|
||||
dev_err(
|
||||
&priv->spi->dev,
|
||||
"Error %ld when creating debugfs node\n",
|
||||
PTR_ERR(test->ca8210_dfs_spi_int)
|
||||
);
|
||||
return PTR_ERR(test->ca8210_dfs_spi_int);
|
||||
}
|
||||
|
||||
debugfs_create_symlink("ca8210", NULL, node_name);
|
||||
init_waitqueue_head(&test->readq);
|
||||
return kfifo_alloc(
|
||||
|
||||
Reference in New Issue
Block a user