summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-11-08 17:30:20 +0100
committerMarcel Holtmann <linux-mh.adm@bkbits.net>2004-11-08 17:30:20 +0100
commit957389f941fb0eb8fc76daed5f9d8cffbbefe964 (patch)
treeebbdd5ccb8c39e38d0869b1ff473fe84b9aa9e80 /net
parent6e1e0801625c77b421e3e3dd2a78ca42415b671a (diff)
[Bluetooth] Some trivial s/int/unsigned int/
In http://janitor.kernelnewbies.org/TODO, Jeff Garzik states: "unsigned int" is preferred to "int", it generates better asm code on all platforms except sh5. Signed-off-by: Carlo Perassi <carlo@linux.it> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_sysfs.c3
-rw-r--r--net/bluetooth/lib.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index 314106635cad..5a6b7fdaee25 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -114,7 +114,8 @@ static struct class bt_class = {
int hci_register_sysfs(struct hci_dev *hdev)
{
struct class_device *cdev = &hdev->class_dev;
- int i, err;
+ unsigned int i;
+ int err;
BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type);
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c
index ca07e4bb04e1..9efb0a093612 100644
--- a/net/bluetooth/lib.c
+++ b/net/bluetooth/lib.c
@@ -38,13 +38,13 @@ void bt_dump(char *pref, __u8 *buf, int count)
{
char *ptr;
char line[100];
- int i;
+ unsigned int i;
printk(KERN_INFO "%s: dump, len %d\n", pref, count);
ptr = line;
*ptr = 0;
- for (i = 0; i<count; i++) {
+ for (i = 0; i < count; i++) {
ptr += sprintf(ptr, " %2.2X", buf[i]);
if (i && !((i + 1) % 20)) {
@@ -63,7 +63,7 @@ void baswap(bdaddr_t *dst, bdaddr_t *src)
{
unsigned char *d = (unsigned char *) dst;
unsigned char *s = (unsigned char *) src;
- int i;
+ unsigned int i;
for (i = 0; i < 6; i++)
d[i] = s[5 - i];