diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2022-05-03 07:57:47 +0900 |
---|---|---|
committer | 坂本 貴史 <o-takashi@sakamocchi.jp> | 2022-05-03 08:31:29 +0900 |
commit | 1692b43bae2dcb5b8abe792fece08d90eea464a7 (patch) | |
tree | 8f9d5d449395ef4c89df95173708aa85b3851880 | |
parent | f204122c67569a30454ce0b0ffde6ce6869c5b25 (diff) | |
download | libhinoko-1692b43bae2dcb5b8abe792fece08d90eea464a7.tar.gz |
fw_iso_rx_multiple: minor code refactoring to check GError argument
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r-- | src/fw_iso_rx_multiple.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fw_iso_rx_multiple.c b/src/fw_iso_rx_multiple.c index c54fbd6..c435fb0 100644 --- a/src/fw_iso_rx_multiple.c +++ b/src/fw_iso_rx_multiple.c @@ -157,7 +157,7 @@ void hinoko_fw_iso_rx_multiple_allocate(HinokoFwIsoRxMultiple *self, int i; g_return_if_fail(HINOKO_IS_FW_ISO_RX_MULTIPLE(self)); - g_return_if_fail(error != NULL && *error == NULL); + g_return_if_fail(error == NULL || *error == NULL); g_return_if_fail(channels_length > 0); @@ -237,7 +237,7 @@ void hinoko_fw_iso_rx_multiple_map_buffer(HinokoFwIsoRxMultiple *self, HinokoFwIsoRxMultiplePrivate *priv; g_return_if_fail(HINOKO_IS_FW_ISO_RX_MULTIPLE(self)); - g_return_if_fail(error != NULL && *error == NULL); + g_return_if_fail(error == NULL || *error == NULL); priv = hinoko_fw_iso_rx_multiple_get_instance_private(self); @@ -331,7 +331,7 @@ void hinoko_fw_iso_rx_multiple_start(HinokoFwIsoRxMultiple *self, int i; g_return_if_fail(HINOKO_IS_FW_ISO_RX_MULTIPLE(self)); - g_return_if_fail(error != NULL && *error == NULL); + g_return_if_fail(error == NULL || *error == NULL); priv = hinoko_fw_iso_rx_multiple_get_instance_private(self); @@ -468,7 +468,7 @@ void hinoko_fw_iso_rx_multiple_get_payload(HinokoFwIsoRxMultiple *self, guint frame_size; g_return_if_fail(HINOKO_IS_FW_ISO_RX_MULTIPLE(self)); - g_return_if_fail(error != NULL && *error == NULL); + g_return_if_fail(error == NULL || *error == NULL); priv = hinoko_fw_iso_rx_multiple_get_instance_private(self); |