Bluetooth: Use EOPNOTSUPP instead of ENOTSUPP
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 18 Jul 2014 08:15:26 +0000 (11:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Jul 2014 09:11:38 +0000 (11:11 +0200)
The EOPNOTSUPP and ENOTSUPP errors are very similar in meaning, but
ENOTSUPP is a fairly new addition to POSIX. Not all libc versions know
about the value the kernel uses for ENOTSUPP so it's better to use
EOPNOTSUPP to ensure understandable error messages.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_conn.c
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c
net/bluetooth/smp.c

Simple merge
Simple merge
Simple merge
Simple merge