summaryrefslogtreecommitdiff
path: root/nuttx/lib/termios/lib_cfsetspeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/lib/termios/lib_cfsetspeed.c')
-rw-r--r--nuttx/lib/termios/lib_cfsetspeed.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/nuttx/lib/termios/lib_cfsetspeed.c b/nuttx/lib/termios/lib_cfsetspeed.c
index bf9e66064..714562ff5 100644
--- a/nuttx/lib/termios/lib_cfsetspeed.c
+++ b/nuttx/lib/termios/lib_cfsetspeed.c
@@ -110,12 +110,7 @@
int cfsetspeed(FAR struct termios *termiosp, speed_t speed)
{
- FAR speed_t *speedp;
-
DEBUGASSERT(termiosp);
-
- speedp = (FAR speed_t *)&termiosp->c_speed;
- *speedp = speed;
-
+ termiosp->c_speed = speed;
return OK;
}