Use the string choice helper function str_plural() to simplify the code.
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
---
drivers/parport/parport_ip32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parport/parport_ip32.c b/drivers/parport/parport_ip32.c
index 0919ed99ba94..a45ce3338199 100644
--- a/drivers/parport/parport_ip32.c
+++ b/drivers/parport/parport_ip32.c
@@ -372,7 +372,7 @@ static void parport_ip32_dump_state(struct parport *p, char *str,
if ((cnfgA & CNFGA_ID_MASK) != CNFGA_ID_8)
pr_cont(",%d byte%s left",
cnfgA & CNFGA_PWORDLEFT,
- ((cnfgA & CNFGA_PWORDLEFT) > 1) ? "s" : "");
+ str_plural(cnfgA & CNFGA_PWORDLEFT));
pr_cont("\n");
printk(KERN_DEBUG PPIP32 " cnfgB=0x%02x", cnfgB);
pr_cont(" irq=%u,dma=%u",
--
2.34.1