[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170622192646.GA14339@embeddedgus>
Date: Thu, 22 Jun 2017 14:26:46 -0500
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: Tony Luck <tony.luck@...el.com>, Borislav Petkov <bp@...en8.de>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <garsilva@...eddedor.com>
Subject: [PATCH 1/2] edac: pnd2_edac: add code comment for clarification
Add code comment to make it clear that the fall-through is intentional.
Addresses-Coverity-ID: 1403728
Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
---
drivers/edac/pnd2_edac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/edac/pnd2_edac.c b/drivers/edac/pnd2_edac.c
index 1cad5a9..c51ec73 100644
--- a/drivers/edac/pnd2_edac.c
+++ b/drivers/edac/pnd2_edac.c
@@ -174,6 +174,7 @@ static int apl_rd_reg(int port, int off, int op, void *data, size_t sz, char *na
switch (sz) {
case 8:
ret = sbi_send(port, off + 4, op, (u32 *)(data + 4));
+ /* fall through */
case 4:
ret = sbi_send(port, off, op, (u32 *)data);
pnd2_printk(KERN_DEBUG, "%s=%x%08x ret=%d\n", name,
--
2.5.0
Powered by blists - more mailing lists