Patchwork [U-Boot,1/2] cosmetic: cfi_flash: delete a space after an unary operator

login
register
mail settings
Submitter Masahiro Yamada
Date May 17, 2013, 5:50 a.m.
Message ID <1368769837-10630-2-git-send-email-yamada.m@jp.panasonic.com>
Download mbox | patch
Permalink /patch/244502/
State Awaiting Upstream
Delegated to: Stefan Roese
Headers show

Comments

Masahiro Yamada - May 17, 2013, 5:50 a.m.
Linux Kernel Documentation/CodingStyle says:
 Do not add a space after unary operators such as &, *, ...

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---
 drivers/mtd/cfi_flash.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Stefan Roese - May 23, 2013, 7:49 a.m.
On 05/17/2013 07:50 AM, Masahiro Yamada wrote:
> Linux Kernel Documentation/CodingStyle says:
>  Do not add a space after unary operators such as &, *, ...

Applied to u-boot-cfi-flash/master.

Thanks,
Stefan

Patch

diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 22d8440..6dd47b4 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -186,7 +186,7 @@  flash_info_t *flash_get_info(ulong base)
 	flash_info_t *info = NULL;
 
 	for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
-		info = & flash_info[i];
+		info = &flash_info[i];
 		if (info->size && info->start[0] <= base &&
 		    base <= info->start[0] + info->size - 1)
 			break;