Eo: Don't compare desc to NULL as it can never be NULL at that stage.
authorTom Hacohen <tom@stosb.com>
Mon, 30 Sep 2013 13:32:47 +0000 (14:32 +0100)
committerTom Hacohen <tom@stosb.com>
Mon, 30 Sep 2013 13:32:47 +0000 (14:32 +0100)
Fixes coverity CID1039420.

src/lib/eo/eo.c

index b838bb328bde6a7aa6c9da152cda829b226d4afe..b15bd8440450129d0c9dc72d01bf8229feb4b8fa 100644 (file)
@@ -496,7 +496,7 @@ _eo_class_base_op_init(_Eo_Class *klass)
 
    klass->base_id = _eo_ops_last_id;
 
-   if (desc && desc->ops.base_op_id)
+   if (desc->ops.base_op_id)
       *(desc->ops.base_op_id) = klass->base_id;
 
    _eo_ops_last_id += desc->ops.count + 1;