elan: Fix switch in change_state
The switch in change_state had a useless break and a useless if clause. Remove both.
This commit is contained in:
parent
8b28133bee
commit
b16245ad58
1 changed files with 2 additions and 5 deletions
|
@ -975,8 +975,6 @@ elan_change_state (FpImageDevice *idev)
|
||||||
|
|
||||||
switch (next_state)
|
switch (next_state)
|
||||||
{
|
{
|
||||||
break;
|
|
||||||
|
|
||||||
case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
|
case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
|
||||||
/* activation completed or another enroll stage started */
|
/* activation completed or another enroll stage started */
|
||||||
elan_calibrate (dev);
|
elan_calibrate (dev);
|
||||||
|
@ -988,9 +986,8 @@ elan_change_state (FpImageDevice *idev)
|
||||||
|
|
||||||
case FP_IMAGE_DEVICE_STATE_INACTIVE:
|
case FP_IMAGE_DEVICE_STATE_INACTIVE:
|
||||||
case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
|
case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
|
||||||
if (self->dev_state != FP_IMAGE_DEVICE_STATE_INACTIVE ||
|
elan_stop_capture (dev);
|
||||||
self->dev_state != FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF)
|
break;
|
||||||
elan_stop_capture (dev);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue