mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 05:18:45 +02:00
ptp: ocp: Remove redundant check in _signal_summary_show
In the function _signal_summary_show(), there is a NULL-check for &bp->signal[nr], which cannot actually be NULL. Therefore, this redundant check can be removed. Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/20250305092520.25817-1-i.abramov@mt-integration.ru Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
2c2166e872
commit
cd02ab7366
|
|
@ -3959,9 +3959,6 @@ _signal_summary_show(struct seq_file *s, struct ptp_ocp *bp, int nr)
|
|||
bool on;
|
||||
u32 val;
|
||||
|
||||
if (!signal)
|
||||
return;
|
||||
|
||||
on = signal->running;
|
||||
sprintf(label, "GEN%d", nr + 1);
|
||||
seq_printf(s, "%7s: %s, period:%llu duty:%d%% phase:%llu pol:%d",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user