Bluetooth: make batostr() print in the right order
[deliverable/linux.git] / net / bluetooth / rfcomm / tty.c
index befc3a52aa04ba2c03a7d367d86766e40de0950f..26461639f133499f1698488c162c7bd79831b8c0 100644 (file)
@@ -183,9 +183,7 @@ static struct device *rfcomm_get_device(struct rfcomm_dev *dev)
 static ssize_t show_address(struct device *tty_dev, struct device_attribute *attr, char *buf)
 {
        struct rfcomm_dev *dev = dev_get_drvdata(tty_dev);
-       bdaddr_t bdaddr;
-       baswap(&bdaddr, &dev->dst);
-       return sprintf(buf, "%s\n", batostr(&bdaddr));
+       return sprintf(buf, "%s\n", batostr(&dev->dst));
 }
 
 static ssize_t show_channel(struct device *tty_dev, struct device_attribute *attr, char *buf)
This page took 0.024057 seconds and 5 git commands to generate.