[source] kernel: fix build error in mtdsplit driver

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 7 02:39:17 PST 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/4339e5ddb10973d9ae10103db1c1a4f7c20a1d98

commit 4339e5ddb10973d9ae10103db1c1a4f7c20a1d98
Author: Koen Vandeputte <koen.vandeputte at ncentric.com>
AuthorDate: Tue Feb 7 09:31:35 2017 +0100

    kernel: fix build error in mtdsplit driver
    
    Add missing parentheses.
    Fixes kernel build issue when using this driver.
    
    Signed-off-by: Koen Vandeputte <koen.vandeputte at ncentric.com>
---
 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
index ee65144..bd1c723 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
@@ -262,7 +262,7 @@ static ssize_t uimage_verify_wndr3700(u_char *buf, size_t len)
 	struct uimage_header *header = (struct uimage_header *)buf;
 	uint8_t expected_type = IH_TYPE_FILESYSTEM;
 
-	switch be32_to_cpu(header->ih_magic) {
+	switch (be32_to_cpu(header->ih_magic)) {
 	case FW_MAGIC_WNR612V2:
 	case FW_MAGIC_WNR1000V2:
 	case FW_MAGIC_WNR1000V2_VC:



More information about the lede-commits mailing list