mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 15:57:38 +00:00
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:
parent
8076090a00
commit
af5fb429c8
@ -206,7 +206,8 @@ fu_sahara_loader_close(FuSaharaLoader *self, GError **error)
|
|||||||
gboolean
|
gboolean
|
||||||
fu_sahara_loader_qdl_is_open(FuSaharaLoader *self)
|
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);
|
return fu_usb_device_is_open(self->usb_device);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user