aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2017-10-11 10:49:13 -0700
committerDoug Ledford <dledford@redhat.com>2017-10-14 20:47:07 -0400
commit69a840357df94f4bc2b658b49273fe452231e3c4 (patch)
tree93dee7ac7e1c5b598c3b7a885d09f4cfc3578a7b /drivers/infiniband
parentIB/nes: Fix a race condition in nes_inetaddr_event() (diff)
downloadlinux-dev-69a840357df94f4bc2b658b49273fe452231e3c4.tar.xz
linux-dev-69a840357df94f4bc2b658b49273fe452231e3c4.zip
RDMA/ocrdma: Use NULL instead of 0 to represent a pointer
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Selvin Xavier <selvin.xavier@broadcom.com> Cc: Devesh Sharma <devesh.sharma@broadcom.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
index 8e2e9bcf1916..eaacb71b0bff 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
@@ -3186,7 +3186,7 @@ void ocrdma_eqd_set_task(struct work_struct *work)
{
struct ocrdma_dev *dev =
container_of(work, struct ocrdma_dev, eqd_work.work);
- struct ocrdma_eq *eq = 0;
+ struct ocrdma_eq *eq = NULL;
int i, num = 0, status = -EINVAL;
u64 eq_intr;