Message ID | 20190426060132.13584-1-johan@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 80ed53707bb3ec92c331ca33f45c113338ee434d |
Headers | show |
Series | USB: serial: drop unused iflag macro | expand |
On Fri, Apr 26, 2019 at 08:01:32AM +0200, Johan Hovold wrote: > Drop the RELEVANT_IFLAG() macro which essentially hasn't been used for > over a decade except in some remnant debug printks that were recently > removed. > > Signed-off-by: Johan Hovold <johan@kernel.org> > --- > include/linux/usb/serial.h | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h > index 9d378826248b..1b631ea476ee 100644 > --- a/include/linux/usb/serial.h > +++ b/include/linux/usb/serial.h > @@ -23,9 +23,6 @@ > /* The maximum number of ports one device can grab at once */ > #define MAX_NUM_PORTS 16 > > -/* parity check flag */ > -#define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK)) > - > /* USB serial flags */ > #define USB_SERIAL_WRITE_BUSY 0 > #define USB_SERIAL_THROTTLED 1 Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 9d378826248b..1b631ea476ee 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h @@ -23,9 +23,6 @@ /* The maximum number of ports one device can grab at once */ #define MAX_NUM_PORTS 16 -/* parity check flag */ -#define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK)) - /* USB serial flags */ #define USB_SERIAL_WRITE_BUSY 0 #define USB_SERIAL_THROTTLED 1
Drop the RELEVANT_IFLAG() macro which essentially hasn't been used for over a decade except in some remnant debug printks that were recently removed. Signed-off-by: Johan Hovold <johan@kernel.org> --- include/linux/usb/serial.h | 3 --- 1 file changed, 3 deletions(-)