1
0
forked from drath/libratbag

drop inconsistent null check

We do not check dev for null in any of the other functions. If it
was actually null then we would also already have got a null pointer
dereference earlier in the function.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-09-02 22:03:05 +02:00
parent 5f2d538e10
commit 9011876d1b

View File

@@ -294,8 +294,7 @@ hidpp10_set_individual_feature(struct hidpp10_device *dev,
log_raw(dev->ratbag_device->ratbag, "Setting individual features\n");
if (dev)
mode.msg.device_idx = dev->index;
mode.msg.device_idx = dev->index;
mode.msg.parameters[0] = feature_bit_r0;
mode.msg.parameters[1] = feature_bit_r2;