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
e05ddeb9
Commit
e05ddeb9
authored
Feb 27, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IEEE1394(r1169): Trivial cleanups.
parent
3bbd038f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/ieee1394/eth1394.c
drivers/ieee1394/eth1394.c
+1
-2
drivers/ieee1394/ieee1394_transactions.c
drivers/ieee1394/ieee1394_transactions.c
+3
-3
No files found.
drivers/ieee1394/eth1394.c
View file @
e05ddeb9
...
...
@@ -1483,7 +1483,6 @@ static inline struct hpsb_packet *ether1394_alloc_common_packet(struct hpsb_host
p
=
hpsb_alloc_packet
(
0
);
if
(
p
)
{
p
->
host
=
host
;
p
->
data
=
NULL
;
p
->
generation
=
get_hpsb_generation
(
host
);
p
->
type
=
hpsb_async
;
}
...
...
@@ -1514,7 +1513,7 @@ static inline int ether1394_prep_write_packet(struct hpsb_packet *p,
|
(
1
<<
8
)
|
(
TCODE_WRITEB
<<
4
);
p
->
header
[
3
]
=
tx_len
<<
16
;
p
->
data_size
=
tx_len
+
(
tx_len
%
4
?
4
-
(
tx_len
%
4
)
:
0
)
;
p
->
data_size
=
(
tx_len
+
3
)
&
~
3
;
p
->
data
=
(
quadlet_t
*
)
data
;
return
0
;
...
...
drivers/ieee1394/ieee1394_transactions.c
View file @
e05ddeb9
...
...
@@ -268,7 +268,7 @@ struct hpsb_packet *hpsb_make_readpacket(struct hpsb_host *host, nodeid_t node,
if
(
length
==
0
)
return
NULL
;
packet
=
hpsb_alloc_packet
(
length
+
(
length
%
4
?
4
-
(
length
%
4
)
:
0
)
);
packet
=
hpsb_alloc_packet
(
(
length
+
3
)
&
~
3
);
if
(
!
packet
)
return
NULL
;
...
...
@@ -296,7 +296,7 @@ struct hpsb_packet *hpsb_make_writepacket (struct hpsb_host *host, nodeid_t node
if
(
length
==
0
)
return
NULL
;
packet
=
hpsb_alloc_packet
(
length
+
(
length
%
4
?
4
-
(
length
%
4
)
:
0
)
);
packet
=
hpsb_alloc_packet
(
(
length
+
3
)
&
~
3
);
if
(
!
packet
)
return
NULL
;
...
...
@@ -330,7 +330,7 @@ struct hpsb_packet *hpsb_make_streampacket(struct hpsb_host *host, u8 *buffer, i
if
(
length
==
0
)
return
NULL
;
packet
=
hpsb_alloc_packet
(
length
+
(
length
%
4
?
4
-
(
length
%
4
)
:
0
)
);
packet
=
hpsb_alloc_packet
(
(
length
+
3
)
&
~
3
);
if
(
!
packet
)
return
NULL
;
...
...
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