media: atomisp: Remove unnecessary NULL checks in ia_css_pipe_load_extension
[linux-2.6-microblaze.git] / drivers / staging / media / atomisp / pci / sh_css.c
index de504cb..35093c5 100644 (file)
@@ -8493,22 +8493,9 @@ ia_css_pipe_load_extension(struct ia_css_pipe *pipe,
        }
 
        if (firmware->info.isp.type == IA_CSS_ACC_OUTPUT)
-       {
-               if (&pipe->output_stage)
-                       append_firmware(&pipe->output_stage, firmware);
-               else {
-                       IA_CSS_LEAVE_ERR_PRIVATE(IA_CSS_ERR_INTERNAL_ERROR);
-                       return IA_CSS_ERR_INTERNAL_ERROR;
-               }
-       } else if (firmware->info.isp.type == IA_CSS_ACC_VIEWFINDER)
-       {
-               if (&pipe->vf_stage)
-                       append_firmware(&pipe->vf_stage, firmware);
-               else {
-                       IA_CSS_LEAVE_ERR_PRIVATE(IA_CSS_ERR_INTERNAL_ERROR);
-                       return IA_CSS_ERR_INTERNAL_ERROR;
-               }
-       }
+               append_firmware(&pipe->output_stage, firmware);
+       else if (firmware->info.isp.type == IA_CSS_ACC_VIEWFINDER)
+               append_firmware(&pipe->vf_stage, firmware);
        err = acc_load_extension(firmware);
 
        IA_CSS_LEAVE_ERR_PRIVATE(err);