[RTEMS Project] #4292: rtems-rfs-bitmaps.c: Useless call (CID 1399749)

RTEMS trac trac at rtems.org
Wed Mar 3 21:04:09 UTC 2021


#4292: rtems-rfs-bitmaps.c: Useless call (CID 1399749)
----------------------------+--------------------
  Reporter:  Joel Sherrill  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:  6.1
 Component:  fs/rfs         |    Version:  6
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+--------------------
 Coverity Scan spotted this in rtems-rfs-bitmaps.c as CID 1399749). On the
 face of it, Scan appears to be correct but this issue should be reviewed
 by the original author of this code.

 {{{
    }
 623    else
 624    {
 625      bits      = *map;
 626      available = rtems_rfs_bitmap_element_bits ();
 627    }
 628
 629    if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))

 CID 1399749 (#1 of 1): Useless call (USELESS_CALL)
 side_effect_free: Calling rtems_rfs_bitmap_set(*search_map, bit) is only
 useful for its return value, which is ignored. [show details]
 630      rtems_rfs_bitmap_set (*search_map, bit);
 631    else
 632    {
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4292>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list