From 7f7d099ba0f0880ea2ccd8c117ab3feb1a272816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 16 Jun 2020 22:43:18 +0200 Subject: [PATCH] fpi-device: Don't double check for cancellable value g_cancellable_is_cancelled already handles properly null values --- libfprint/fpi-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/fpi-device.c b/libfprint/fpi-device.c index 0cc5ef41..4f900551 100644 --- a/libfprint/fpi-device.c +++ b/libfprint/fpi-device.c @@ -391,7 +391,7 @@ fpi_device_action_is_cancelled (FpDevice *device) cancellable = g_task_get_cancellable (priv->current_task); - return cancellable ? g_cancellable_is_cancelled (cancellable) : FALSE; + return g_cancellable_is_cancelled (cancellable); } /**