mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
net: chelsio: cxgb4: Use str_plural() in mem_intr_handler()
Replace the manual ternary "s" pluralization with str_plural() to simplify the code. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Potnuri Bharat Teja <bharat@chelsio.com> Link: https://patch.msgid.link/20260704121010.201016-3-thorsten.blum@linux.dev Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
832255a6df
commit
d5d7554052
|
|
@ -33,6 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <linux/delay.h>
|
||||
#include <linux/string_choices.h>
|
||||
#include "cxgb4.h"
|
||||
#include "t4_regs.h"
|
||||
#include "t4_values.h"
|
||||
|
|
@ -4867,7 +4868,7 @@ static void mem_intr_handler(struct adapter *adapter, int idx)
|
|||
if (printk_ratelimit())
|
||||
dev_warn(adapter->pdev_dev,
|
||||
"%u %s correctable ECC data error%s\n",
|
||||
cnt, name[idx], cnt > 1 ? "s" : "");
|
||||
cnt, name[idx], str_plural(cnt));
|
||||
}
|
||||
if (v & ECC_UE_INT_CAUSE_F)
|
||||
dev_alert(adapter->pdev_dev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user