fdtable: remove remains of switch
a switch was converted to an if statement and still had a default, something went really wrong here. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
d4ea2261e0
commit
9143f4fd8c
1 changed files with 0 additions and 6 deletions
|
@ -308,12 +308,6 @@ int fcntl(int fd, int cmd, ...)
|
||||||
/* Not implemented so far. */
|
/* Not implemented so far. */
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
default:
|
|
||||||
/* Add an empty default with break, this is a defensive programming.
|
|
||||||
* Static analysis tool won't raise a violation if default is empty,
|
|
||||||
* but has that comment.
|
|
||||||
*/
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The rest of commands are per-fd, handled by ioctl vmethod. */
|
/* The rest of commands are per-fd, handled by ioctl vmethod. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue