forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Wunused-value in drivers/net/ethernet/pensando/ionic/ionic_debugfs.c #658
Labels
-Wunused-value
[BUG] linux
A bug that should be fixed in the mainline kernel.
[FIXED][LINUX] 5.4
This bug was fixed in Linux 5.4
Comments
fengguang
pushed a commit
to 0day-ci/linux
that referenced
this issue
Sep 20, 2019
clang warns: ../drivers/net/ethernet/pensando/ionic/ionic_debugfs.c:60:37: warning: expression result unused [-Wunused-value] ionic, &identity_fops) ? 0 : -EOPNOTSUPP; ^~~~~~~~~~~ 1 warning generated. The return value of debugfs_create_file does not need to be checked [1] and the function returns void so get rid of the ternary operator, it is unnecessary. [1]: https://lore.kernel.org/linux-mm/20150815160730.GB25186@kroah.com/ Fixes: fbfb803 ("ionic: Add hardware init and device commands") Link: ClangBuiltLinux#658 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: Shannon Nelson <snelson@pensando.io> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Merged into mainline: https://git.kernel.org/torvalds/c/b47bea2b5c3bf17270defe8529774dad114bcee5 |
anlaneg
pushed a commit
to anlaneg/linux
that referenced
this issue
Oct 3, 2019
clang warns: ../drivers/net/ethernet/pensando/ionic/ionic_debugfs.c:60:37: warning: expression result unused [-Wunused-value] ionic, &identity_fops) ? 0 : -EOPNOTSUPP; ^~~~~~~~~~~ 1 warning generated. The return value of debugfs_create_file does not need to be checked [1] and the function returns void so get rid of the ternary operator, it is unnecessary. [1]: https://lore.kernel.org/linux-mm/20150815160730.GB25186@kroah.com/ Fixes: fbfb803 ("ionic: Add hardware init and device commands") Link: ClangBuiltLinux#658 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: Shannon Nelson <snelson@pensando.io> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
-Wunused-value
[BUG] linux
A bug that should be fixed in the mainline kernel.
[FIXED][LINUX] 5.4
This bug was fixed in Linux 5.4
Patch submitted: https://lore.kernel.org/netdev/20190917232616.125261-1-natechancellor@gmail.com/
The text was updated successfully, but these errors were encountered: