OSDN Git Service

pcm: minor code cleanup for ioctl call
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 23 Jun 2017 13:09:24 +0000 (22:09 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2017 13:33:50 +0000 (15:33 +0200)
commit8beab3eb8a4346f823cb42c507122f0abbf9025f
treea41f325e4b90e97ddfcb99583279e670f98935b3
parentf10bc243e42142c568d90f540e806aefb45d8bac
pcm: minor code cleanup for ioctl call

When error occurs, return value from ioctl(2) is -1 and error code can
be got thread local variable, errno. It's OK just to check the return
value without any assignment.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_hw.c