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
nexedi
linux
Commits
1174764e
Commit
1174764e
authored
Mar 15, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://gitorious.org/linux-can/linux-can-next
parents
cdf485be
1ccba210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drivers/net/can/usb/peak_usb/pcan_usb.c
drivers/net/can/usb/peak_usb/pcan_usb.c
+2
-4
No files found.
drivers/net/can/usb/peak_usb/pcan_usb.c
View file @
1174764e
...
...
@@ -741,16 +741,14 @@ static int pcan_usb_encode_msg(struct peak_usb_device *dev, struct sk_buff *skb,
/* can id */
if
(
cf
->
can_id
&
CAN_EFF_FLAG
)
{
__le32
tmp32
=
cpu_to_le32
(
cf
->
can_id
&
CAN_ERR_MASK
);
__le32
tmp32
=
cpu_to_le32
(
(
cf
->
can_id
&
CAN_ERR_MASK
)
<<
3
);
tmp32
<<=
3
;
*
pc
|=
PCAN_USB_STATUSLEN_EXT_ID
;
memcpy
(
++
pc
,
&
tmp32
,
4
);
pc
+=
4
;
}
else
{
__le16
tmp16
=
cpu_to_le
32
(
cf
->
can_id
&
CAN_ERR_MASK
);
__le16
tmp16
=
cpu_to_le
16
((
cf
->
can_id
&
CAN_ERR_MASK
)
<<
5
);
tmp16
<<=
5
;
memcpy
(
++
pc
,
&
tmp16
,
2
);
pc
+=
2
;
}
...
...
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