public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Miller <commnerd@gmail.com>
To: axboe@kernel.dk
Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org,
	Michael Miller <commnerd@gmail.com>
Subject: [PATCH] block/partitions/acorn.c: Changed string pointer declaration to array declaration for fewer asm statements
Date: Fri,  6 Jul 2012 01:14:31 -0600	[thread overview]
Message-ID: <1341558871-6572-1-git-send-email-commnerd@gmail.com> (raw)

Per the KernelJanitors page, this fix will remove 2 - 3 asm calls when declaring a string.

Signed-off-by: Michael Miller <commnerd@gmail.com>

---
 block/partitions/acorn.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/partitions/acorn.c b/block/partitions/acorn.c
index fbeb697..bf5847e 100644
--- a/block/partitions/acorn.c
+++ b/block/partitions/acorn.c
@@ -168,7 +168,7 @@ int adfspart_check_CUMANA(struct parsed_partitions *state)
 	unsigned int start_blk = 0;
 	Sector sect;
 	unsigned char *data;
-	char *name = "CUMANA/ADFS";
+	char name[] = "CUMANA/ADFS";
 	int first = 1;
 	int slot = 1;
 
-- 
1.7.2.5


             reply	other threads:[~2012-07-06  7:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06  7:14 Michael Miller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-06-27 15:41 [PATCH] block/partitions/acorn.c: Changed string pointer declaration to array declaration for fewer asm statements Michael Miller

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=1341558871-6572-1-git-send-email-commnerd@gmail.com \
    --to=commnerd@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox