Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
09939871
Commit
09939871
authored
Apr 02, 2007
by
Stefan Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieee1394: eth1394: some conditions are unlikely
Signed-off-by:
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
parent
2e2173df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/ieee1394/eth1394.c
drivers/ieee1394/eth1394.c
+4
-4
No files found.
drivers/ieee1394/eth1394.c
View file @
09939871
...
...
@@ -1023,7 +1023,7 @@ static int ether1394_data_handler(struct net_device *dev, int srcid, int destid,
if
(
!
ud
)
{
struct
eth1394_node_ref
*
node
;
node
=
eth1394_find_node_nodeid
(
&
priv
->
ip_node_list
,
srcid
);
if
(
!
node
)
{
if
(
unlikely
(
!
node
)
)
{
HPSB_PRINT
(
KERN_ERR
,
"ether1394 rx: sender nodeid "
"lookup failure: "
NODE_BUS_FMT
,
NODE_BUS_ARGS
(
priv
->
host
,
srcid
));
...
...
@@ -1048,7 +1048,7 @@ static int ether1394_data_handler(struct net_device *dev, int srcid, int destid,
* high level network layer. */
skb
=
dev_alloc_skb
(
len
+
dev
->
hard_header_len
+
15
);
if
(
!
skb
)
{
if
(
unlikely
(
!
skb
)
)
{
ETH1394_PRINT_G
(
KERN_ERR
,
"Out of memory
\n
"
);
priv
->
stats
.
rx_dropped
++
;
return
-
1
;
...
...
@@ -1203,7 +1203,7 @@ static int ether1394_write(struct hpsb_host *host, int srcid, int destid,
struct
eth1394_host_info
*
hi
;
hi
=
hpsb_get_hostinfo
(
&
eth1394_highlevel
,
host
);
if
(
hi
==
NULL
)
{
if
(
unlikely
(
!
hi
)
)
{
ETH1394_PRINT_G
(
KERN_ERR
,
"No net device at fw-host%d
\n
"
,
host
->
id
);
return
RCODE_ADDRESS_ERROR
;
...
...
@@ -1229,7 +1229,7 @@ static void ether1394_iso(struct hpsb_iso *iso)
int
nready
;
hi
=
hpsb_get_hostinfo
(
&
eth1394_highlevel
,
iso
->
host
);
if
(
hi
==
NULL
)
{
if
(
unlikely
(
!
hi
)
)
{
ETH1394_PRINT_G
(
KERN_ERR
,
"No net device at fw-host%d
\n
"
,
iso
->
host
->
id
);
return
;
...
...
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