Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1290184 > unrolled thread

[patch 2/2] regmap: missing case statement

Started byDan Carpenter <dan.carpenter@oracle.com>
First post2015-12-12 14:10 +0100
Last post2015-12-12 14:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [patch 2/2] regmap: missing case statement Dan Carpenter <dan.carpenter@oracle.com> - 2015-12-12 14:10 +0100

#1290184 — [patch 2/2] regmap: missing case statement

FromDan Carpenter <dan.carpenter@oracle.com>
Date2015-12-12 14:10 +0100
Subject[patch 2/2] regmap: missing case statement
Message-ID<qES5X-2zo-7@gated-at.bofh.it>
This new code is unreachable.  Presumably there was supposed to be a
case statement there similar to the earlier code.

Fixes: afcc00b91f18 ('regmap: add 64-bit mode support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 2d4cc70..026c44a 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -844,6 +844,7 @@ struct regmap *__regmap_init(struct device *dev,
 		}
 		break;
 #ifdef CONFIG_64BIT
+	case 64:
 		switch (val_endian) {
 		case REGMAP_ENDIAN_BIG:
 			map->format.format_val = regmap_format_64_be;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web