net-Liquidio: Delete unnecessary checks before the function call "vfree"
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / cavium / liquidio / request_manager.c
index 356796bf9b871e82f4e300206e24757072bfa870..a2a24652c8f32826882f82910b76d38c8df49593 100644 (file)
@@ -175,8 +175,7 @@ int octeon_delete_instr_queue(struct octeon_device *oct, u32 iq_no)
                desc_size =
                    CFG_GET_IQ_INSTR_TYPE(CHIP_FIELD(oct, cn6xxx, conf));
 
-       if (iq->request_list)
-               vfree(iq->request_list);
+       vfree(iq->request_list);
 
        if (iq->base_addr) {
                q_size = iq->max_count * desc_size;