From: Colin Ian King Date: Thu, 2 Jun 2016 18:31:38 +0000 (+0100) Subject: Remove extraneous and unused mode parameter from show_nvme_id_ctrl_power X-Git-Tag: v0.8~42^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c3934fdaaee47c212e832ca9d7b35b7719a4dd67;p=users%2Fsagi%2Fnvme-cli.git Remove extraneous and unused mode parameter from show_nvme_id_ctrl_power mode is not used, so we may as well remove it Signed-off-by: Colin Ian King --- diff --git a/nvme-print.c b/nvme-print.c index b7a7d1e4..e1ebf393 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -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);