don't fail if ctl is set to the same value

This commit is contained in:
Alexandre Ratchov 2016-01-26 10:25:58 +01:00
parent 5dc67b663e
commit f08810f595
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ setvol(struct siomix_sun_hdl *hdl, struct wskbd_vol *vol, int addr, int val)
if (vol->level_idx >= 0 && addr >= 0 && addr < vol->nch) {
if (vol->level_val[addr] == val) {
DPRINTF("level %d, no change\n", val);
return 0;
return 1;
}
vol->level_val[addr] = val;
ctrl.dev = vol->level_idx;