framework/iotbus: remove wrong checking condition on iotbus_gpio_register_cb
The iotbus_gpio_register_cb has 4 arguments and user_date is an argument.
That is given to call back function as an function argument.
It can be NULL when we don't need to give data so that we should
remove checking null condition for user_data.
@@ -355,7 +355,7 @@ int iotbus_gpio_register_cb(iotbus_gpio_context_h dev, iotbus_gpio_edge_e edge,
iotapi_elem elm;
struct _iotbus_gpio_s *handle;
- if (isr_cb == NULL || user_data == NULL) {
+ if (isr_cb == NULL) {
return IOTBUS_ERROR_INVALID_PARAMETER;
}
