aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_ldisc.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-04-04 22:57:21 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-04-07 12:47:09 -0400
commitdfe19d28200f0d2306ef1510bbea3df18e22a6bc (patch)
treefa37e486d5df1710cf530844dd50d0d9a582a8e9 /drivers/bluetooth/hci_ldisc.c
parente9a2dd261ac3d7bffbf55368a60401f5982dcc59 (diff)
Bluetooth: hci_uart: Remove unneeded cast of tty->disc_data
Casting the tty->disc_data to (void *) is not needed at all. So just remove this cast and assign the object without a cast. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_ldisc.c')
-rw-r--r--drivers/bluetooth/hci_ldisc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index b6d1ff4fbba6..c577a40e790d 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -362,7 +362,7 @@ static int hci_uart_tty_open(struct tty_struct *tty)
362 */ 362 */
363static void hci_uart_tty_close(struct tty_struct *tty) 363static void hci_uart_tty_close(struct tty_struct *tty)
364{ 364{
365 struct hci_uart *hu = (void *)tty->disc_data; 365 struct hci_uart *hu = tty->disc_data;
366 struct hci_dev *hdev; 366 struct hci_dev *hdev;
367 367
368 BT_DBG("tty %p", tty); 368 BT_DBG("tty %p", tty);
@@ -401,7 +401,7 @@ static void hci_uart_tty_close(struct tty_struct *tty)
401 */ 401 */
402static void hci_uart_tty_wakeup(struct tty_struct *tty) 402static void hci_uart_tty_wakeup(struct tty_struct *tty)
403{ 403{
404 struct hci_uart *hu = (void *)tty->disc_data; 404 struct hci_uart *hu = tty->disc_data;
405 405
406 BT_DBG(""); 406 BT_DBG("");
407 407
@@ -431,7 +431,7 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty)
431 */ 431 */
432static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, char *flags, int count) 432static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, char *flags, int count)
433{ 433{
434 struct hci_uart *hu = (void *)tty->disc_data; 434 struct hci_uart *hu = tty->disc_data;
435 435
436 if (!hu || tty != hu->tty) 436 if (!hu || tty != hu->tty)
437 return; 437 return;
@@ -560,7 +560,7 @@ static int hci_uart_set_flags(struct hci_uart *hu, unsigned long flags)
560static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file * file, 560static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file * file,
561 unsigned int cmd, unsigned long arg) 561 unsigned int cmd, unsigned long arg)
562{ 562{
563 struct hci_uart *hu = (void *)tty->disc_data; 563 struct hci_uart *hu = tty->disc_data;
564 int err = 0; 564 int err = 0;
565 565
566 BT_DBG(""); 566 BT_DBG("");