Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
eec562d9
Commit
eec562d9
authored
Jan 24, 2004
by
Andrew Morton
Committed by
David S. Miller
Jan 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Do not use lvalue in assignment.
parent
9418b4d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
drivers/net/tg3.c
drivers/net/tg3.c
+9
-7
No files found.
drivers/net/tg3.c
View file @
eec562d9
...
...
@@ -5850,10 +5850,12 @@ static int tg3_get_regs_len(struct net_device *dev)
return
TG3_REGDUMP_LEN
;
}
static
void
tg3_get_regs
(
struct
net_device
*
dev
,
struct
ethtool_regs
*
regs
,
void
*
p
)
static
void
tg3_get_regs
(
struct
net_device
*
dev
,
struct
ethtool_regs
*
regs
,
void
*
_p
)
{
u32
*
p
=
_p
;
struct
tg3
*
tp
=
dev
->
priv
;
u8
*
orig_p
=
p
;
u8
*
orig_p
=
_
p
;
int
i
;
regs
->
version
=
0
;
...
...
@@ -5863,15 +5865,15 @@ static void tg3_get_regs(struct net_device *dev, struct ethtool_regs *regs, void
spin_lock_irq
(
&
tp
->
lock
);
spin_lock
(
&
tp
->
tx_lock
);
#define __GET_REG32(reg) (*(
(u32 *)(p)
)++ = tr32(reg))
#define __GET_REG32(reg) (*(
p
)++ = tr32(reg))
#define GET_REG32_LOOP(base,len) \
do { p =
orig_p + (base);
\
do { p =
(u32 *)(orig_p + (base));
\
for (i = 0; i < len; i += 4) \
__GET_REG32((base) + i); \
} while (0)
#define GET_REG32_1(reg) \
do { p =
orig_p + (reg);
\
__GET_REG32((reg)); \
#define GET_REG32_1(reg)
\
do { p =
(u32 *)(orig_p + (reg));
\
__GET_REG32((reg));
\
} while (0)
GET_REG32_LOOP
(
TG3PCI_VENDOR
,
0xb0
);
...
...
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