Bluetooth: Change simple_strtol to simple_strtoul
authorJulia Lawall <julia@diku.dk>
Sun, 30 Nov 2008 11:17:20 +0000 (12:17 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Nov 2008 11:17:20 +0000 (12:17 +0100)
commit51a6fbc855b07a0737558560dd0ab0b5f646025b
tree244e0d245de77acee2bd7deacc0ea6f422325848
parentdb7aa1c203d477351ed1b8f394b40d9df06ddfc4
Bluetooth: Change simple_strtol to simple_strtoul

Since size, addr, fcs, and tmp are unsigned, it would seem better to use
simple_strtoul that simple_strtol.

A simplified version of the semantic patch that makes this change is as
follows: (http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r2@
long e;
position p;
@@

e = simple_strtol@p(...)

@@
position p != r2.p;
type T;
T e;
@@

e =
- simple_strtol@p
+ simple_strtoul
  (...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/bt3c_cs.c