re: Input: atmel_mxt_ts - initialise IRQ before probing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Nick Dyer,

The patch dd24dcf566d0: "Input: atmel_mxt_ts - initialise IRQ before
probing" from Jul 23, 2014, leads to the following static checker
warning:

drivers/input/touchscreen/atmel_mxt_ts.c:1701 mxt_initialize()
	 warn: we tested 'error' before and it was 'false'

drivers/input/touchscreen/atmel_mxt_ts.c
  1693          /* Get object table information */
  1694          error = mxt_get_object_table(data);
  1695          if (error) {
  1696                  dev_err(&client->dev, "Error %d reading object table\n", error);
  1697                  return error;
  1698          }
  1699  
  1700          mxt_acquire_irq(data);

Probably error = mxt_acquire_irq(data) was intended here?

  1701          if (error)
  1702                  goto err_free_object_table;
  1703  
  1704          request_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME,
  1705                                  &data->client->dev, GFP_KERNEL, data,
  1706                                  mxt_config_cb);
  1707  
  1708          return 0;
  1709  
  1710  err_free_object_table:
  1711          mxt_free_object_table(data);
  1712          return error;
  1713  }

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux