Skip to content

Commit

Permalink
staging: slicoss: Remove unnecessary braces {}
Browse files Browse the repository at this point in the history
Removes unnecessary braces {} on both arms of an if-else block as they
have a single statement each. Issue detected by checkpatch.

Signed-off-by: Rehas Sachdeva <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
rehassachdeva authored and gregkh committed Sep 16, 2016
1 parent 1462b30 commit baa3062
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/slicoss/slicoss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,11 +1630,10 @@ static u32 slic_rcvqueue_reinsert(struct adapter *adapter, struct sk_buff *skb)
dev_err(dev, " rcvq->tail[%p]\n", rcvq->tail);
dev_err(dev, " rcvq->count[%x]\n", rcvq->count);
}
if (paddrh == 0) {
if (paddrh == 0)
slic_write32(adapter, SLIC_REG_HBAR, (u32)paddrl);
} else {
else
slic_write64(adapter, SLIC_REG_HBAR64, paddrl, paddrh);
}
if (rcvq->head)
rcvq->tail->next = skb;
else
Expand Down

0 comments on commit baa3062

Please sign in to comment.