aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2017-02-07 09:31:35 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-07 11:39:11 +0100
commit4339e5ddb10973d9ae10103db1c1a4f7c20a1d98 (patch)
tree544584b761ba532ba577ee84502cadec6baa4692 /target/linux
parent597ea080386c736673e19fbf5dc825807e851573 (diff)
downloadupstream-4339e5ddb10973d9ae10103db1c1a4f7c20a1d98.tar.gz
upstream-4339e5ddb10973d9ae10103db1c1a4f7c20a1d98.tar.bz2
upstream-4339e5ddb10973d9ae10103db1c1a4f7c20a1d98.zip
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@ncentric.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c2
1 files changed, 1 insertions, 1 deletions
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 ee65144fea..bd1c723e74 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: