summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/usnic/usnic_ib_main.c
diff options
context:
space:
mode:
authorUpinder Malhi <umalhi@cisco.com>2014-01-10 02:48:36 +0400
committerRoland Dreier <roland@purestorage.com>2014-01-14 12:44:45 +0400
commit6a54d9f9a04ed35e6615a47974c1ef02ff3a62cb (patch)
tree46e85fcbed32081471afbbe79e600940b3659c65 /drivers/infiniband/hw/usnic/usnic_ib_main.c
parent248567f79304b953ea492fb92ade097b62ed09b2 (diff)
downloadlinux-6a54d9f9a04ed35e6615a47974c1ef02ff3a62cb.tar.xz
IB/usnic: Remove superflous parentheses
Signed-off-by: Upinder Malhi <umalhi@cisco.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/usnic/usnic_ib_main.c')
-rw-r--r--drivers/infiniband/hw/usnic/usnic_ib_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c b/drivers/infiniband/hw/usnic/usnic_ib_main.c
index 3b7e8bd22df6..f7be44543c0a 100644
--- a/drivers/infiniband/hw/usnic/usnic_ib_main.c
+++ b/drivers/infiniband/hw/usnic/usnic_ib_main.c
@@ -470,7 +470,7 @@ static struct usnic_ib_dev *usnic_ib_discover_pf(struct usnic_vnic *vnic)
us_ibdev = usnic_ib_device_add(parent_pci);
if (IS_ERR_OR_NULL(us_ibdev)) {
- us_ibdev = (us_ibdev) ? us_ibdev : ERR_PTR(-EFAULT);
+ us_ibdev = us_ibdev ? us_ibdev : ERR_PTR(-EFAULT);
goto out;
}
@@ -526,7 +526,7 @@ static int usnic_ib_pci_probe(struct pci_dev *pdev,
vf->vnic = usnic_vnic_alloc(pdev);
if (IS_ERR_OR_NULL(vf->vnic)) {
- err = (vf->vnic ? PTR_ERR(vf->vnic) : -ENOMEM);
+ err = vf->vnic ? PTR_ERR(vf->vnic) : -ENOMEM;
usnic_err("Failed to alloc vnic for %s with err %d\n",
pci_name(pdev), err);
goto out_release_regions;
@@ -536,7 +536,7 @@ static int usnic_ib_pci_probe(struct pci_dev *pdev,
if (IS_ERR_OR_NULL(pf)) {
usnic_err("Failed to discover pf of vnic %s with err%ld\n",
pci_name(pdev), PTR_ERR(pf));
- err = (pf ? PTR_ERR(pf) : -EFAULT);
+ err = pf ? PTR_ERR(pf) : -EFAULT;
goto out_clean_vnic;
}