forked from drath/libratbag
sinowealth: use NULL instead of 0 for pointers
This commit is contained in:
committed by
Peter Hutterer
parent
7ff73c8515
commit
16a7b6ed18
@@ -504,8 +504,8 @@ static int
|
||||
sinowealth_probe(struct ratbag_device *device)
|
||||
{
|
||||
int rc;
|
||||
struct sinowealth_data *drv_data = 0;
|
||||
struct ratbag_profile *profile = 0;
|
||||
struct sinowealth_data *drv_data = NULL;
|
||||
struct ratbag_profile *profile = NULL;
|
||||
|
||||
drv_data = zalloc(sizeof(*drv_data));
|
||||
ratbag_set_drv_data(device, drv_data);
|
||||
@@ -535,7 +535,7 @@ err:
|
||||
ratbag_profile_unref(profile);
|
||||
|
||||
free(drv_data);
|
||||
ratbag_set_drv_data(device, 0);
|
||||
ratbag_set_drv_data(device, NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user