Skip to content

Commit a1376d3

Browse files
aduggan-synadtor
authored andcommitted
Input: synaptics-rmi4 - remove check of Non-NULL array
Originally the irq_mask member of rmi_function was a pointer. Then it was switched to being a zero length array. However, the checks for a NULL pointer where not removed. Signed-off-by: Andrew Duggan <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 2d5f561 commit a1376d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/rmi4/rmi_driver.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static void process_one_interrupt(struct rmi_driver_data *data,
126126
return;
127127

128128
fh = to_rmi_function_handler(fn->dev.driver);
129-
if (fn->irq_mask && fh->attention) {
129+
if (fh->attention) {
130130
bitmap_and(data->fn_irq_bits, data->irq_status, fn->irq_mask,
131131
data->irq_count);
132132
if (!bitmap_empty(data->fn_irq_bits, data->irq_count))
@@ -172,8 +172,7 @@ int rmi_process_interrupt_requests(struct rmi_device *rmi_dev)
172172
* use irq_chip.
173173
*/
174174
list_for_each_entry(entry, &data->function_list, node)
175-
if (entry->irq_mask)
176-
process_one_interrupt(data, entry);
175+
process_one_interrupt(data, entry);
177176

178177
if (data->input)
179178
input_sync(data->input);

0 commit comments

Comments
 (0)