Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
cba0516d
Commit
cba0516d
authored
Nov 23, 2007
by
Jeff Garzik
Committed by
David S. Miller
Jan 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr] checkpatch cleanups
Signed-off-by:
Jeff Garzik
<
jgarzik@redhat.com
>
parent
93a3b607
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
16 deletions
+18
-16
drivers/net/3c507.c
drivers/net/3c507.c
+8
-5
drivers/net/at1700.c
drivers/net/at1700.c
+3
-2
drivers/net/bnx2x.c
drivers/net/bnx2x.c
+1
-2
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_ethtool.c
+1
-1
drivers/net/eexpress.c
drivers/net/eexpress.c
+2
-3
drivers/net/lp486e.c
drivers/net/lp486e.c
+1
-1
drivers/net/tulip/de4x5.c
drivers/net/tulip/de4x5.c
+2
-2
No files found.
drivers/net/3c507.c
View file @
cba0516d
...
...
@@ -832,10 +832,11 @@ static void el16_rx(struct net_device *dev)
if
(
rfd_cmd
!=
0
||
data_buffer_addr
!=
rx_head
+
22
||
(
pkt_len
&
0xC000
)
!=
0xC000
)
{
printk
(
"%s: Rx frame at %#x corrupted, status %04x cmd %04x "
"next %04x data-buf @%04x %04x.
\n
"
,
dev
->
name
,
rx_head
,
frame_status
,
rfd_cmd
,
next_rx_frame
,
data_buffer_addr
,
pkt_len
);
printk
(
KERN_ERR
"%s: Rx frame at %#x corrupted, "
"status %04x cmd %04x next %04x "
"data-buf @%04x %04x.
\n
"
,
dev
->
name
,
rx_head
,
frame_status
,
rfd_cmd
,
next_rx_frame
,
data_buffer_addr
,
pkt_len
);
}
else
if
((
frame_status
&
0x2000
)
==
0
)
{
/* Frame Rxed, but with error. */
dev
->
stats
.
rx_errors
++
;
...
...
@@ -851,7 +852,9 @@ static void el16_rx(struct net_device *dev)
pkt_len
&=
0x3fff
;
skb
=
dev_alloc_skb
(
pkt_len
+
2
);
if
(
skb
==
NULL
)
{
printk
(
"%s: Memory squeeze, dropping packet.
\n
"
,
dev
->
name
);
printk
(
KERN_ERR
"%s: Memory squeeze, "
"dropping packet.
\n
"
,
dev
->
name
);
dev
->
stats
.
rx_dropped
++
;
break
;
}
...
...
drivers/net/at1700.c
View file @
cba0516d
...
...
@@ -465,8 +465,9 @@ found:
/* Snarf the interrupt vector now. */
ret
=
request_irq
(
irq
,
&
net_interrupt
,
0
,
DRV_NAME
,
dev
);
if
(
ret
)
{
printk
(
" AT1700 at %#3x is unusable due to a conflict on "
"IRQ %d.
\n
"
,
ioaddr
,
irq
);
printk
(
KERN_ERR
"AT1700 at %#3x is unusable due to a "
"conflict on IRQ %d.
\n
"
,
ioaddr
,
irq
);
goto
err_mca
;
}
...
...
drivers/net/bnx2x.c
View file @
cba0516d
...
...
@@ -8788,8 +8788,7 @@ static int __devinit bnx2x_init_board(struct pci_dev *pdev,
INIT_WORK
(
&
bp
->
reset_task
,
bnx2x_reset_task
);
INIT_WORK
(
&
bp
->
sp_task
,
bnx2x_sp_task
);
dev
->
base_addr
=
dev
->
mem_start
=
pci_resource_start
(
pdev
,
0
);
dev
->
mem_end
=
pci_resource_end
(
pdev
,
0
);
dev
->
base_addr
=
pci_resource_start
(
pdev
,
0
);
dev
->
irq
=
pdev
->
irq
;
...
...
drivers/net/e1000/e1000_ethtool.c
View file @
cba0516d
...
...
@@ -743,7 +743,7 @@ static bool reg_pattern_test(struct e1000_adapter *adapter, uint64_t *data,
if
(
read
!=
(
write
&
test
[
i
]
&
mask
))
{
DPRINTK
(
DRV
,
ERR
,
"pattern test reg %04X failed: "
"got 0x%08X expected 0x%08X
\n
"
,
reg
,
read
,
(
write
&
test
[
i
]
&
mask
));
reg
,
read
,
(
write
&
test
[
i
]
&
mask
));
*
data
=
reg
;
return
true
;
}
...
...
drivers/net/eexpress.c
View file @
cba0516d
...
...
@@ -784,8 +784,7 @@ static irqreturn_t eexp_irq(int dummy, void *dev_info)
old_read_ptr
=
inw
(
ioaddr
+
READ_PTR
);
old_write_ptr
=
inw
(
ioaddr
+
WRITE_PTR
);
outb
(
SIRQ_dis
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
outb
(
SIRQ_dis
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
status
=
scb_status
(
dev
);
...
...
@@ -852,7 +851,7 @@ static irqreturn_t eexp_irq(int dummy, void *dev_info)
eexp_cmd_clear
(
dev
);
outb
(
SIRQ_en
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
outb
(
SIRQ_en
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
#if NET_DEBUG > 6
printk
(
"%s: leaving eexp_irq()
\n
"
,
dev
->
name
);
...
...
drivers/net/lp486e.c
View file @
cba0516d
...
...
@@ -1144,7 +1144,7 @@ i596_handle_CU_completion(struct net_device *dev,
}
static
irqreturn_t
i596_interrupt
(
int
irq
,
void
*
dev_instance
)
i596_interrupt
(
int
irq
,
void
*
dev_instance
)
{
struct
net_device
*
dev
=
dev_instance
;
struct
i596_private
*
lp
=
dev
->
priv
;
...
...
drivers/net/tulip/de4x5.c
View file @
cba0516d
...
...
@@ -4168,7 +4168,7 @@ de4x5_bad_srom(struct de4x5_private *lp)
{
int
i
,
status
=
0
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
enet_det
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
enet_det
);
i
++
)
{
if
(
!
de4x5_strncmp
((
char
*
)
&
lp
->
srom
,
(
char
*
)
&
enet_det
[
i
],
3
)
&&
!
de4x5_strncmp
((
char
*
)
&
lp
->
srom
+
0x10
,
(
char
*
)
&
enet_det
[
i
],
3
))
{
if
(
i
==
0
)
{
...
...
@@ -4188,7 +4188,7 @@ de4x5_strncmp(char *a, char *b, int n)
{
int
ret
=
0
;
for
(;
n
&&
!
ret
;
n
--
)
{
for
(;
n
&&
!
ret
;
n
--
)
{
ret
=
*
a
++
-
*
b
++
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment