modem-manager: remove improper use of assert

FuSaharaLoader being NULL is normal for devices that only
support Firehose and don't use Sahara QDL port.
This commit is contained in:
Ivan Mikhanchuk 2023-01-24 17:06:09 -08:00 committed by Mario Limonciello
parent 8076090a00
commit af5fb429c8

View File

@ -206,7 +206,8 @@ fu_sahara_loader_close(FuSaharaLoader *self, GError **error)
gboolean
fu_sahara_loader_qdl_is_open(FuSaharaLoader *self)
{
g_return_val_if_fail(self != NULL, FALSE);
if (self == NULL)
return FALSE;
return fu_usb_device_is_open(self->usb_device);
}