Date: Thu, 20 Apr 2023 09:54:06 +0200 Omit extra null pointer checks for the input parameter validation in the implementation of the function “process_link_qual” because it should be called only with valid pointers. Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> --- drivers/staging/rtl8712/rtl8712_recv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c index 7da014ab0723..f0789b5ef59b 100644 --- a/drivers/staging/rtl8712/rtl8712_recv.c +++ b/drivers/staging/rtl8712/rtl8712_recv.c @@ -866,8 +866,6 @@ static void process_link_qual(struct _adapter *padapter, struct rx_pkt_attrib *pattrib; struct smooth_rssi_data *sqd = &padapter->recvpriv.signal_qual_data; - if (!prframe || !padapter) - return; pattrib = &prframe->u.hdr.attrib; if (pattrib->signal_qual != 0) { /* -- 2.40.0