Bluetooth: Use single_open() for inquiry cache within debugfs
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 2 Mar 2010 15:48:23 +0000 (15:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 09:04:38 +0000 (01:04 -0800)
commitd4612cb86ed8db8956b6b19435f8a30de6c67ffe
tree1b316277198d7fe51aa74d44bb1e7ca0265e834d
parent1162563f82b434e3099c9e6c1bbdba846d792f0d
Bluetooth: Use single_open() for inquiry cache within debugfs

The inquiry cache information in debugfs should be using seq_file support
and not allocating memory on the stack for the string. Since the usage of
these information is really seldom, using single_open() for it is good
enough.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/hci_sysfs.c