]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Remove extraneous and unused mode parameter from show_nvme_id_ctrl_power
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Jun 2016 18:31:38 +0000 (19:31 +0100)
committerColin Ian King <colin.king@canonical.com>
Thu, 2 Jun 2016 18:37:55 +0000 (19:37 +0100)
mode is not used, so we may as well remove it

Signed-off-by: Colin Ian King <colin.king@canonical.com>
nvme-print.c

index b7a7d1e4e8fe9b85864dfadfe04c2f2bab526b4b..e1ebf393401442ce758bd3a397ff9089e458fffa 100644 (file)
@@ -539,7 +539,7 @@ static void print_ps_power_and_scale(__le16 ctr_power, __u8 scale)
        }
 }
 
-static void show_nvme_id_ctrl_power(struct nvme_id_ctrl *ctrl, unsigned int mode)
+static void show_nvme_id_ctrl_power(struct nvme_id_ctrl *ctrl)
 {
        int i;
 
@@ -653,7 +653,7 @@ void show_nvme_id_ctrl(struct nvme_id_ctrl *ctrl, unsigned int mode)
        if (human)
                show_nvme_id_ctrl_sgls(ctrl->sgls);
 
-       show_nvme_id_ctrl_power(ctrl, mode);
+       show_nvme_id_ctrl_power(ctrl);
        if (vs) {
                printf("vs[]:\n");
                d(ctrl->vs, sizeof(ctrl->vs), 16, 1);