Browse Source

staging: unisys: Remove parentheses around right hand side of assignment

Remove parentheses on the right hand side of assignment as they are not
needed. Semantic patch used:

@@
expression a, b, c, d;
@@

(
  a = (c == d)
|
  a =
- (
  b
- )
)
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Janani Ravichandran 9 years ago
parent
commit
90cb147f3a

+ 2 - 2
drivers/staging/unisys/visorbus/visorchannel.c

@@ -461,7 +461,7 @@ signalinsert_inner(struct visorchannel *channel, u32 queue, void *msg)
 	if (!sig_read_header(channel, queue, &sig_hdr))
 	if (!sig_read_header(channel, queue, &sig_hdr))
 		return false;
 		return false;
 
 
-	sig_hdr.head = ((sig_hdr.head + 1) % sig_hdr.max_slots);
+	sig_hdr.head = (sig_hdr.head + 1) % sig_hdr.max_slots;
 	if (sig_hdr.head == sig_hdr.tail) {
 	if (sig_hdr.head == sig_hdr.tail) {
 		sig_hdr.num_overflows++;
 		sig_hdr.num_overflows++;
 		visorchannel_write(channel,
 		visorchannel_write(channel,
@@ -521,7 +521,7 @@ visorchannel_signalqueue_slots_avail(struct visorchannel *channel, u32 queue)
 	tail = sig_hdr.tail;
 	tail = sig_hdr.tail;
 	if (head < tail)
 	if (head < tail)
 		head = head + sig_hdr.max_slots;
 		head = head + sig_hdr.max_slots;
-	slots_used = (head - tail);
+	slots_used = head - tail;
 	slots_avail = sig_hdr.max_signals - slots_used;
 	slots_avail = sig_hdr.max_signals - slots_used;
 	return (int)slots_avail;
 	return (int)slots_avail;
 }
 }

+ 2 - 2
drivers/staging/unisys/visorhba/visorhba_main.c

@@ -323,9 +323,9 @@ static int forward_taskmgmt_command(enum task_mgmt_types tasktype,
 		goto err_del_scsipending_ent;
 		goto err_del_scsipending_ent;
 
 
 	if (tasktype == TASK_MGMT_ABORT_TASK)
 	if (tasktype == TASK_MGMT_ABORT_TASK)
-		scsicmd->result = (DID_ABORT << 16);
+		scsicmd->result = DID_ABORT << 16;
 	else
 	else
-		scsicmd->result = (DID_RESET << 16);
+		scsicmd->result = DID_RESET << 16;
 
 
 	scsicmd->scsi_done(scsicmd);
 	scsicmd->scsi_done(scsicmd);
 
 

+ 2 - 2
drivers/staging/unisys/visornic/visornic_main.c

@@ -1029,7 +1029,7 @@ visornic_set_multi(struct net_device *netdev)
 			cmdrsp->net.type = NET_RCV_PROMISC;
 			cmdrsp->net.type = NET_RCV_PROMISC;
 			cmdrsp->net.enbdis.context = netdev;
 			cmdrsp->net.enbdis.context = netdev;
 			cmdrsp->net.enbdis.enable =
 			cmdrsp->net.enbdis.enable =
-				(netdev->flags & IFF_PROMISC);
+				netdev->flags & IFF_PROMISC;
 			visorchannel_signalinsert(devdata->dev->visorchannel,
 			visorchannel_signalinsert(devdata->dev->visorchannel,
 						  IOCHAN_TO_IOPART,
 						  IOCHAN_TO_IOPART,
 						  cmdrsp);
 						  cmdrsp);
@@ -1772,7 +1772,7 @@ static int visornic_probe(struct visor_device *dev)
 	}
 	}
 
 
 	netdev->netdev_ops = &visornic_dev_ops;
 	netdev->netdev_ops = &visornic_dev_ops;
-	netdev->watchdog_timeo = (5 * HZ);
+	netdev->watchdog_timeo = 5 * HZ;
 	SET_NETDEV_DEV(netdev, &dev->device);
 	SET_NETDEV_DEV(netdev, &dev->device);
 
 
 	/* Get MAC adddress from channel and read it into the device. */
 	/* Get MAC adddress from channel and read it into the device. */