Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222026
b: refs/heads/master
c: bfaaeb3
h: refs/heads/master
v: v3
  • Loading branch information
steven miao authored and Gustavo F. Padovan committed Nov 9, 2010
1 parent d5a916e commit 81b0d42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 556ea928f78a390fe16ae584e6433dff304d3014
refs/heads/master: bfaaeb3ed5533a2dd38e3aa9ea43efd619690aed
8 changes: 4 additions & 4 deletions trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2421,11 +2421,11 @@ static inline int l2cap_get_conf_opt(void **ptr, int *type, int *olen, unsigned
break;

case 2:
*val = __le16_to_cpu(*((__le16 *) opt->val));
*val = get_unaligned_le16(opt->val);
break;

case 4:
*val = __le32_to_cpu(*((__le32 *) opt->val));
*val = get_unaligned_le32(opt->val);
break;

default:
Expand All @@ -2452,11 +2452,11 @@ static void l2cap_add_conf_opt(void **ptr, u8 type, u8 len, unsigned long val)
break;

case 2:
*((__le16 *) opt->val) = cpu_to_le16(val);
put_unaligned_le16(cpu_to_le16(val), opt->val);
break;

case 4:
*((__le32 *) opt->val) = cpu_to_le32(val);
put_unaligned_le32(cpu_to_le32(val), opt->val);
break;

default:
Expand Down

0 comments on commit 81b0d42

Please sign in to comment.