public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: drivers/scsi/qla2xxx/qla_os.c:3722 code aligned with following code on line 3723
Date: Thu, 20 Sep 2012 05:29:10 +0000	[thread overview]
Message-ID: <20120920052910.GA28374@localhost> (raw)
In-Reply-To: <20120919031034.GA22081@localhost>

On Thu, Sep 20, 2012 at 12:24:55AM -0500, Saurav Kashyap wrote:
> +Chad, Giri
> 
> Hi Fengguang,
> 
> It not very clear on what the warning is reported for, can you provide
> more information regarding this?

This warning will be triggered for such code:

        if (xxx)
                yyy;
                zzz;

Where one would expect the reasonable format to be either

        if (xxx) {
                yyy;
                zzz;
        }

or

        if (xxx)
                yyy;
        zzz;

Thanks,
Fengguang

> >Hi Saurav,
> >
> >FYI, there are new coccinelle warnings show up in
> >
> >commit aaf4d3e2c647b5d1b24082b766c173e6c7edf79b
> >Author:     Saurav Kashyap <saurav.kashyap@qlogic.com>
> >Commit:     James Bottomley <JBottomley@Parallels.com>
> >CommitDate: Thu May 10 08:18:04 2012 +0100
> >
> >    [SCSI] qla2xxx: Properly check for current state after the
> >fabric-login request.
> >
> >
> >+ drivers/scsi/qla2xxx/qla_os.c:3722:7-21: code aligned with following
> >code on line 3723
> >
> >vim +3722 drivers/scsi/qla2xxx/qla_os.c
> >  3712                                 } else {
> >  3713                                         status = qla2x00_fabric_login(vha,
> >  3714                                             fcport, &next_loopid);
> >  3715                                         if (status =  QLA_SUCCESS) {
> >  3716                                                 int status2;
> >  3717                                                 uint8_t opts;
> >  3718
> >  3719                                                 opts = 0;
> >  3720                                                 if (fcport->flags &
> >  3721                                                     FCF_FCP2_DEVICE)
> >> 3722                                                         opts |= BIT_1;
> >  3723                                                         status2 > >  3724                                                             qla2x00_get_port_database(
> >  3725                                                                 vha, fcport,
> >  3726                                                                 opts);
> >  3727                                                 if (status2 != QLA_SUCCESS)
> >  3728                                                         status = 1;
> >  3729                                         }
> >  3730                                 }
> >  3731                         } else
> >  3732                                 status = qla2x00_local_device_login(vha,
> >
> >---
> >0-DAY kernel build testing backend         Open Source Technology Centre
> >Fengguang Wu, Yuanhan Liu                              Intel Corporation
> >
> 
> 
> This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.

  parent reply	other threads:[~2012-09-20  5:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19  3:10 drivers/scsi/qla2xxx/qla_os.c:3722 code aligned with following code on line 3723 Fengguang Wu
2012-09-20  5:24 ` Saurav Kashyap
2012-09-20  5:29 ` Fengguang Wu [this message]
2012-09-20  5:40 ` Saurav Kashyap

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=20120920052910.GA28374@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.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