iwlegacy: 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: Stanislaw Gruszka <sgruszka@redhat.com> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: linux-wireless@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

کامیت شده توسط
Kalle Valo

والد
3bd1505fed
کامیت
71ee1284d6
@@ -3756,10 +3756,7 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
if (err)
|
||||
goto out_remove_sysfs;
|
||||
|
||||
err = il_dbgfs_register(il, DRV_NAME);
|
||||
if (err)
|
||||
IL_ERR("failed to create debugfs files. Ignoring error: %d\n",
|
||||
err);
|
||||
il_dbgfs_register(il, DRV_NAME);
|
||||
|
||||
/* Start monitoring the killswitch */
|
||||
queue_delayed_work(il->workqueue, &il->_3945.rfkill_poll, 2 * HZ);
|
||||
|
مرجع در شماره جدید
Block a user