linux-4.2-rc8/drivers/pci/setup-bus.c: 2 * redundant conditions ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

1.

[linux-4.2-rc8/drivers/pci/setup-bus.c:946]: (style) Redundant condition: reallo
c_head. '!realloc_head || (realloc_head && !add_size)' is equivalent to '!reallo
c_head || !add_size'

Source code is

    size1 = (!realloc_head || (realloc_head && !add_size)) ? size0 :
        calculate_iosize(size, min_size, add_size + size1,
            resource_size(b_res), min_align);

2.

[linux-4.2-rc8/drivers/pci/setup-bus.c:1094]: (style) Redundant condition: reall
oc_head. '!realloc_head || (realloc_head && !add_size)' is equivalent to '!reall
oc_head || !add_size'

    size1 = (!realloc_head || (realloc_head && !add_size)) ? size0 :
        calculate_memsize(size, min_size, add_size,
                resource_size(b_res), add_align);

Duplicate.

Regards

David Binderman
 		 	   		  --
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux