On Tue, Nov 15, 2022 at 12:45:40AM +0530, Kumar Kartikeya Dwivedi wrote: > if (type_may_be_null(reg->type) && reg->id == id && > !WARN_ON_ONCE(!reg->id)) { > - if (WARN_ON_ONCE(reg->smin_value || reg->smax_value || > - !tnum_equals_const(reg->var_off, 0) || > - reg->off)) { > + if (reg->smin_value || reg->smax_value || !tnum_equals_const(reg->var_off, 0) || reg->off) { .... > + if (WARN_ON_ONCE(reg->smin_value || reg->smax_value || !tnum_equals_const(reg->var_off, 0))) That is too much copy-paste between two lines. Please combine the checks.