struct media_pad *remote;
 
        remote = media_entity_remote_pad(&vpfe_dev->vpfe_isif.pads[0]);
-       if (remote == NULL) {
+       if (!remote) {
                pr_err("Invalid media connection to isif/ccdc\n");
                return NULL;
        }
        int i;
 
        remote = media_entity_remote_pad(&vpfe_dev->vpfe_isif.pads[0]);
-       if (remote == NULL) {
+       if (!remote) {
                pr_err("Invalid media connection to isif/ccdc\n");
                return -EINVAL;
        }
        int ret;
 
        subdev = vpfe_video_remote_subdev(video, &pad);
-       if (subdev == NULL)
+       if (!subdev)
                return -EINVAL;
 
        fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
         * format of the connected pad.
         */
        subdev = vpfe_video_remote_subdev(pipe->outputs[0], NULL);
-       if (subdev == NULL)
+       if (!subdev)
                return -EPIPE;
 
        while (1) {
        /* Allocate memory for the file handle object */
        handle = kzalloc(sizeof(struct vpfe_fh), GFP_KERNEL);
 
-       if (handle == NULL)
+       if (!handle)
                return -ENOMEM;
 
        v4l2_fh_init(&handle->vfh, &video->video_dev);
        }
        /* get the remote pad */
        remote = media_entity_remote_pad(&video->pad);
-       if (remote == NULL) {
+       if (!remote) {
                v4l2_err(&vpfe_dev->v4l2_dev,
                         "invalid remote pad for video node\n");
                return -EINVAL;
        }
        /* get the remote subdev */
        subdev = vpfe_video_remote_subdev(video, NULL);
-       if (subdev == NULL) {
+       if (!subdev) {
                v4l2_err(&vpfe_dev->v4l2_dev,
                         "invalid remote subdev for video node\n");
                return -EINVAL;