public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: stummala@codeaurora.org
Cc: linux-scsi@vger.kernel.org
Subject: re: ufs: Add support for clock gating
Date: Thu, 2 Oct 2014 18:30:54 +0300	[thread overview]
Message-ID: <20141002153054.GA11534@mwanda> (raw)

Hello Sahitya Tummala,

The patch 1ab27c9cf8b6: "ufs: Add support for clock gating" from Sep
25, 2014, leads to the following static checker warning:

	drivers/scsi/ufs/ufshcd.c:4474 __ufshcd_setup_clocks()
	warn: we tested 'ret' before and it was 'false'

drivers/scsi/ufs/ufshcd.c
  4467                  ret = hba->vops->setup_clocks(hba, on);
  4468  out:
  4469          if (ret) {
  4470                  list_for_each_entry(clki, head, list) {
  4471                          if (!IS_ERR_OR_NULL(clki->clk) && clki->enabled)
  4472                                  clk_disable_unprepare(clki->clk);
  4473                  }
  4474          } else if (!ret && on) {
                           ^^^^
Not needed.

  4475                  spin_lock_irqsave(hba->host->host_lock, flags);
  4476                  hba->clk_gating.state = CLKS_ON;
  4477                  spin_unlock_irqrestore(hba->host->host_lock, flags);
  4478          }
  4479          return ret;
  4480  }


regards,
dan carpenter

                 reply	other threads:[~2014-10-02 15:31 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=20141002153054.GA11534@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=stummala@codeaurora.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox