mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Chihau Chau <chihau@gmail.com>
Cc: gregkh@suse.de, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: dream: smd: smd_qmi: fix code style issues
Date: Mon, 15 Mar 2010 06:32:58 +0100	[thread overview]
Message-ID: <20100315053258.GB11552@elf.ucw.cz> (raw)
In-Reply-To: <1268624694-11635-1-git-send-email-chihau@gmail.com>

On Mon 2010-03-15 00:44:54, Chihau Chau wrote:
> From: Chihau Chau <chihau@gmail.com>
> 
> This fixes some code style issues about to #include <linux/uaccess.h>
> instead of <asm/uaccess.h> and some not necessary braces {}.
> 
> Signed-off-by: Chihau Chau <chihau@gmail.com>

ACK.

> ---
>  drivers/staging/dream/smd/smd_qmi.c |    7 +++----
>  1 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/dream/smd/smd_qmi.c b/drivers/staging/dream/smd/smd_qmi.c
> index 687db14..9e9067f 100644
> --- a/drivers/staging/dream/smd/smd_qmi.c
> +++ b/drivers/staging/dream/smd/smd_qmi.c
> @@ -25,7 +25,7 @@
>  #include <linux/miscdevice.h>
>  #include <linux/workqueue.h>
>  
> -#include <asm/uaccess.h>
> +#include <linux/uaccess.h>
>  #include <mach/msm_smd.h>
>  
>  #define QMI_CTL 0x00
> @@ -643,11 +643,10 @@ static int qmi_print_state(struct qmi_ctxt *ctxt, char *buf, int max)
>  	}
>  
>  	i = scnprintf(buf, max, "STATE=%s\n", statename);
> -	i += scnprintf(buf + i, max - i, "CID=%d\n",ctxt->wds_client_id);
> +	i += scnprintf(buf + i, max - i, "CID=%d\n", ctxt->wds_client_id);
>  
> -	if (ctxt->state != STATE_ONLINE){
> +	if (ctxt->state != STATE_ONLINE)
>  		return i;
> -	}
>  
>  	i += scnprintf(buf + i, max - i, "ADDR=%d.%d.%d.%d\n",
>  		ctxt->addr[0], ctxt->addr[1], ctxt->addr[2], ctxt->addr[3]);

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2010-03-15  5:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-15  3:44 Chihau Chau
2010-03-15  5:32 ` Pavel Machek [this message]
2010-04-10 18:08   ` Chihau Chau
2010-04-28 18:42     ` Greg KH
2010-04-15 21:01 Chihau Chau

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=20100315053258.GB11552@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=chihau@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®