public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block/partitions/acorn.c: Changed string pointer declaration to array declaration for fewer asm statements
@ 2012-06-27 15:41 Michael Miller
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Miller @ 2012-06-27 15:41 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, Michael Miller

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] block/partitions/acorn.c: Changed string pointer declaration to array declaration for fewer asm statements
@ 2012-07-06  7:14 Michael Miller
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Miller @ 2012-07-06  7:14 UTC (permalink / raw)
  To: axboe; +Cc: viro, linux-kernel, Michael Miller

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-06  7:11 UTC | newest]

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox