It makes no sense to do a NULL check on the address of core_dev->mu_msg_fifo since it is not NULL even the core_dev is NULL. So drop it to fix the GCC warning.
Signed-off-by: Xiaolei Wang <[email protected]> --- drivers/mxc/vpu_windsor/vpu_encoder_mu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/mxc/vpu_windsor/vpu_encoder_mu.c b/drivers/mxc/vpu_windsor/vpu_encoder_mu.c index 3bb7c60d1845..344eb2953eaf 100644 --- a/drivers/mxc/vpu_windsor/vpu_encoder_mu.c +++ b/drivers/mxc/vpu_windsor/vpu_encoder_mu.c @@ -35,10 +35,6 @@ static void vpu_enc_mbox_free(struct core_device *core_dev) static void vpu_enc_mu_inq_msg(struct core_device *core_dev, void *msg) { - if (&core_dev->mu_msg_fifo == NULL) { - vpu_err("mu_msg_fifo is NULL\n"); - return; - } if (kfifo_in(&core_dev->mu_msg_fifo, msg, sizeof(u_int32)) != sizeof(u_int32)) { vpu_err("No memory for mu msg fifo\n"); -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11389): https://lists.yoctoproject.org/g/linux-yocto/message/11389 Mute This Topic: https://lists.yoctoproject.org/mt/91615652/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
