Thread (3 messages) flat view 3 messages, 3 authors, 2021-02-05

Re: [PATCH] net: hns3: avoid -Wpointer-bool-conversion warning

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-02-05 03:01:40
Also in: lkml

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Thu,  4 Feb 2021 16:38:06 +0100 you wrote:
From: Arnd Bergmann <arnd@arndb.de>

clang points out a redundant sanity check:

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c:497:28: error: address of array 'filp->f_path.dentry->d_iname' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]

This can never fail, so just remove the check.

[...]
Here is the summary with links:
  - net: hns3: avoid -Wpointer-bool-conversion warning
    https://git.kernel.org/netdev/net-next/c/8f8a42ff003a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help