Skip to content

Commit cd02ab7

Browse files
Ivan Abramovkuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: Vadim Fedorenko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2c2166e commit cd02ab7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/ptp/ptp_ocp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,9 +3959,6 @@ _signal_summary_show(struct seq_file *s, struct ptp_ocp *bp, int nr)
39593959
bool on;
39603960
u32 val;
39613961

3962-
if (!signal)
3963-
return;
3964-
39653962
on = signal->running;
39663963
sprintf(label, "GEN%d", nr + 1);
39673964
seq_printf(s, "%7s: %s, period:%llu duty:%d%% phase:%llu pol:%d",

0 commit comments

Comments
 (0)