cdev: Fix error handling of PWM_IOCTL_REQUEST

If the PWM_IOCTL_REQUEST ioctl fails, the return value is -1 and errno
is already set accordingly. So don't overwrite errno in the error path.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 file changed