From 957389f941fb0eb8fc76daed5f9d8cffbbefe964 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 8 Nov 2004 17:30:20 +0100 Subject: [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 Signed-off-by: Marcel Holtmann --- net/bluetooth/hci_sysfs.c | 3 ++- net/bluetooth/lib.c | 6 +++--- 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