Commit 957389f9 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Marcel Holtmann

[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: default avatarCarlo Perassi <carlo@linux.it>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 6e1e0801
......@@ -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);
......
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment