From bbf5ee648636273bf194f5e9a8004ea45d4cb009 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 25 Apr 2013 15:52:48 -0600 Subject: Useless TIOCSERGSTRUCT logic in most serial drivers is not compiled unless CONFIG_DEBUG and CONFIG_SERIAL_TIOCSERGSTRUCT are defined --- nuttx/arch/arm/src/str71x/str71x_serial.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nuttx/arch/arm/src/str71x') diff --git a/nuttx/arch/arm/src/str71x/str71x_serial.c b/nuttx/arch/arm/src/str71x/str71x_serial.c index 2098758b1..2356898bb 100644 --- a/nuttx/arch/arm/src/str71x/str71x_serial.c +++ b/nuttx/arch/arm/src/str71x/str71x_serial.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/arm/src/str71x/str71x_serial.c * - * Copyright (C) 2008-2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2012-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -759,6 +759,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) switch (cmd) { +#ifdef CONFIG_SERIAL_TIOCSERGSTRUCT case TIOCSERGSTRUCT: { struct up_dev_s *user = (struct up_dev_s*)arg; @@ -772,6 +773,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) } } break; +#endif default: ret = -ENOTTY; -- cgit v1.2.3