From: Sangho Yi <antiroot@gmail.com>
To: girish.shivananjappa@linaro.org, cjb@laptop.org,
chuansheng.liu@intel.com
Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org,
Sangho Yi <antiroot@gmail.com>
Subject: [PATCH 1/2] mmc: core: sdio_cis.c: Fixed pointer casting coding style error
Date: Fri, 19 Oct 2012 01:52:11 +0900 [thread overview]
Message-ID: <1350579132-3003-1-git-send-email-antiroot@gmail.com> (raw)
In-Reply-To: <n>
I fixed the following two kinds of errors on coding style.
ERROR: "(foo*)" should be "(foo *)"
ERROR: "(foo**)" should be "(foo **)"
Signed-off-by: Sangho Yi <antiroot@gmail.com>
---
drivers/mmc/core/sdio_cis.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c
index 8e94e55..e4221df 100644
--- a/drivers/mmc/core/sdio_cis.c
+++ b/drivers/mmc/core/sdio_cis.c
@@ -47,11 +47,11 @@ static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func,
size = i;
- buffer = kzalloc(sizeof(char*) * nr_strings + size, GFP_KERNEL);
+ buffer = kzalloc(sizeof(char *) * nr_strings + size, GFP_KERNEL);
if (!buffer)
return -ENOMEM;
- string = (char*)(buffer + nr_strings);
+ string = (char *)(buffer + nr_strings);
for (i = 0; i < nr_strings; i++) {
buffer[i] = string;
@@ -62,10 +62,10 @@ static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func,
if (func) {
func->num_info = nr_strings;
- func->info = (const char**)buffer;
+ func->info = (const char **)buffer;
} else {
card->num_info = nr_strings;
- card->info = (const char**)buffer;
+ card->info = (const char **)buffer;
}
return 0;
--
1.7.9.5
next reply other threads:[~2012-10-18 16:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 16:52 Sangho Yi [this message]
2012-10-18 16:52 ` [PATCH 2/2] mmc: core: sdio_cis.c: Fixed the position of opening braces { Sangho Yi
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=1350579132-3003-1-git-send-email-antiroot@gmail.com \
--to=antiroot@gmail.com \
--cc=chuansheng.liu@intel.com \
--cc=cjb@laptop.org \
--cc=girish.shivananjappa@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@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