Skip to content

Commit 5518ba4

Browse files
committed
tools/testing/nvdimm: Fix fallthrough warning
Use the expected 'fall through' designation to fix: tools/testing/nvdimm/test/nfit.c: In function ‘nd_intel_test_finish_query’: tools/testing/nvdimm/test/nfit.c:433:13: warning: this statement may fall through [-Wimplicit-fallthrough=] fw->state = FW_STATE_UPDATED; ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ tools/testing/nvdimm/test/nfit.c:435:2: note: here case FW_STATE_UPDATED: ^~~~ Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> Link: https://lore.kernel.org/r/156521347159.1442374.1381360879102718899.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 49bddc7 commit 5518ba4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • tools/testing/nvdimm/test

‎tools/testing/nvdimm/test/nfit.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,9 @@ static int nd_intel_test_finish_query(struct nfit_test *t,
428428
dev_dbg(dev, "%s: still verifying\n", __func__);
429429
break;
430430
}
431-
432431
dev_dbg(dev, "%s: transition out verify\n", __func__);
433432
fw->state = FW_STATE_UPDATED;
434-
/* we are going to fall through if it's "done" */
433+
/* fall through */
435434
case FW_STATE_UPDATED:
436435
nd_cmd->status = 0;
437436
/* bogus test version */

0 commit comments

Comments
 (0)