Yang Li <yang.lee@xxxxxxxxxxxxxxxxx> wrote: > The return value from the call to idr_alloc() is int. > However, the return value is being assigned to an unsigned > int variable 'buf_id', so making 'buf_id' an int. > > Eliminate the following warning: > ./drivers/net/wireless/ath/ath12k/dp_mon.c:1300:15-21: WARNING: Unsigned expression compared with zero: buf_id < 0 > > Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx> > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4060 > Signed-off-by: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx> > Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx> Patch applied to ath-next branch of ath.git, thanks. 731e1b36656a wifi: ath12k: dp_mon: Fix unsigned comparison with less than zero -- https://patchwork.kernel.org/project/linux-wireless/patch/20230215011453.73466-1-yang.lee@xxxxxxxxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches