drivers/net: Move && and || to end of previous line
Only files where David Miller is the primary git-signer. wireless, wimax, ixgbe, etc are not modified. Compile tested x86 allyesconfig only Not all files compiled (not x86 compatible) Added a few > 80 column lines, which I ignored. Existing checkpatch complaints ignored. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3454f83583
commit
8e95a2026f
@@ -514,8 +514,8 @@ static int dma_buf_read(pc300_t * card, int ch, struct sk_buff *skb)
|
||||
RX_BD_ADDR(ch, chan->rx_first_bd));
|
||||
while ((status = cpc_readb(&ptdescr->status)) & DST_OSB) {
|
||||
nchar = cpc_readw(&ptdescr->len);
|
||||
if ((status & (DST_OVR | DST_CRC | DST_RBIT | DST_SHRT | DST_ABT))
|
||||
|| (nchar > BD_DEF_LEN)) {
|
||||
if ((status & (DST_OVR | DST_CRC | DST_RBIT | DST_SHRT | DST_ABT)) ||
|
||||
(nchar > BD_DEF_LEN)) {
|
||||
|
||||
if (nchar > BD_DEF_LEN)
|
||||
status |= DST_RBIT;
|
||||
@@ -1428,8 +1428,7 @@ static void falc_update_stats(pc300_t * card, int ch)
|
||||
|
||||
if (((conf->media == IF_IFACE_T1) &&
|
||||
(cpc_readb(falcbase + F_REG(FRS1, ch)) & FRS1_LLBAD) &&
|
||||
(!(cpc_readb(falcbase + F_REG(FRS1, ch)) & FRS1_PDEN)))
|
||||
||
|
||||
(!(cpc_readb(falcbase + F_REG(FRS1, ch)) & FRS1_PDEN))) ||
|
||||
((conf->media == IF_IFACE_E1) &&
|
||||
(cpc_readb(falcbase + F_REG(RSP, ch)) & RSP_LLBAD))) {
|
||||
pfalc->prbs = 2;
|
||||
@@ -2285,8 +2284,8 @@ static void falc_e1_intr(pc300_t * card, int ch)
|
||||
if (gis & GIS_ISR1) {
|
||||
isr1 = cpc_readb(falcbase + F_REG(FISR1, ch));
|
||||
if (isr1 & FISR1_XMB) {
|
||||
if ((pfalc->xmb_cause & 2)
|
||||
&& pfalc->multiframe_mode) {
|
||||
if ((pfalc->xmb_cause & 2) &&
|
||||
pfalc->multiframe_mode) {
|
||||
if (cpc_readb (falcbase + F_REG(FRS0, ch)) &
|
||||
(FRS0_LOS | FRS0_AIS | FRS0_LFA)) {
|
||||
cpc_writeb(falcbase + F_REG(XSP, ch),
|
||||
@@ -2639,9 +2638,9 @@ static int cpc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
||||
!(cpc_readb (scabase + M_REG(CTL, ch)) & CTL_DTR);
|
||||
/* There is no DSR in HD64572 */
|
||||
}
|
||||
if (!arg
|
||||
|| copy_to_user(arg, &pc300status, sizeof(pc300status_t)))
|
||||
return -EINVAL;
|
||||
if (!arg ||
|
||||
copy_to_user(arg, &pc300status, sizeof(pc300status_t)))
|
||||
return -EINVAL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user