mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user