diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2017-07-15 16:26:55 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2017-07-23 10:00:15 +0300 |
commit | 1b355094b308f3377c8f574ce86135ee159c6285 (patch) | |
tree | 117dc3baa00eb4a47abbede8a4d4e395d448f754 /drivers/infiniband | |
parent | dc892e17bbae670a3d7aa6ab8bd1033b15b24645 (diff) | |
download | linux-1b355094b308f3377c8f574ce86135ee159c6285.tar.gz linux-1b355094b308f3377c8f574ce86135ee159c6285.tar.bz2 linux-1b355094b308f3377c8f574ce86135ee159c6285.zip |
IB/ipoib: Remove double pointer assigning
There is no need to assign "p" pointer twice.
This patch fixes the following smatch warning:
drivers/infiniband/ulp/ipoib/ipoib_cm.c:517 ipoib_cm_rx_handler() warn:
missing break? reassigning 'p->id'
Fixes: 839fcaba355a ("IPoIB: Connected mode experimental support")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index f87d104837dc..d69410c2ed97 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c @@ -511,7 +511,6 @@ static int ipoib_cm_rx_handler(struct ib_cm_id *cm_id, case IB_CM_REQ_RECEIVED: return ipoib_cm_req_handler(cm_id, event); case IB_CM_DREQ_RECEIVED: - p = cm_id->context; ib_send_cm_drep(cm_id, NULL, 0); /* Fall through */ case IB_CM_REJ_RECEIVED: |