Skip to content

Commit

Permalink
fix checkpatch review warning
Browse files Browse the repository at this point in the history
  • Loading branch information
francispravin5 committed Jul 12, 2024
1 parent 338ad39 commit 611a047
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -7893,9 +7893,8 @@ static int submit_io(int opcode, char *command, const char *desc, int argc, char
return -ENOMEM;

err = nvme_identify_ns_csi(dev_fd(dev), cfg.namespace_id, 0, NVME_CSI_NVM, nvm_ns);
if (!err) {
if (!err)

Check failure on line 7896 in nvme.c

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: braces {} are not necessary for single statement blocks
get_pif_sts(ns, nvm_ns, &pif, &sts);
}

pi_size = (pif == NVME_NVM_PIF_16B_GUARD) ? 8 : 16;
if (NVME_FLBAS_META_EXT(ns->flbas)) {
Expand Down

0 comments on commit 611a047

Please sign in to comment.