All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Nick Dyer <nick.dyer@itdev.co.uk>, linux-input@vger.kernel.org
Subject: re: Input: atmel_mxt_ts - initialise IRQ before probing
Date: Fri, 25 Jul 2014 15:20:21 +0300	[thread overview]
Message-ID: <20140725122021.GA528@mwanda> (raw)

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

                 reply	other threads:[~2014-07-25 12:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140725122021.GA528@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=linux-input@vger.kernel.org \
    --cc=nick.dyer@itdev.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.