summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-10-07 19:39:42 +0200
committerJason Gunthorpe <jgg@nvidia.com>2021-10-12 18:11:46 +0200
commit4bd46f3a986db97fdb67b05a6b379499fce179ea (patch)
tree965cbe2faeb027eead96aa1e35daaffc2601c179 /drivers/infiniband/core
parentRDMA/hns: Use dma_alloc_coherent() instead of kmalloc/dma_map_single() (diff)
downloadlinux-4bd46f3a986db97fdb67b05a6b379499fce179ea.tar.xz
linux-4bd46f3a986db97fdb67b05a6b379499fce179ea.zip
RDMA/iwpm: Remove redundant initialization of pointer err_str
The pointer err_str is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Link: https://lore.kernel.org/r/20211007173942.21933-1-colin.king@canonical.com Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r--drivers/infiniband/core/iwpm_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/iwpm_util.c b/drivers/infiniband/core/iwpm_util.c
index 54f4feb604d8..358a2db38d23 100644
--- a/drivers/infiniband/core/iwpm_util.c
+++ b/drivers/infiniband/core/iwpm_util.c
@@ -762,7 +762,7 @@ int iwpm_send_hello(u8 nl_client, int iwpm_pid, u16 abi_version)
{
struct sk_buff *skb = NULL;
struct nlmsghdr *nlh;
- const char *err_str = "";
+ const char *err_str;
int ret = -EINVAL;
skb = iwpm_create_nlmsg(RDMA_NL_IWPM_HELLO, &nlh, nl_client);