[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 29 09:27:50 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=789278



--- Comment #1022 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18341 committed in master by Niels de Vos
(ndevos at redhat.com) 
------
commit e348b4df9bfd80be5c521bc4c76faf2693e90692
Author: Mohammed Azhar Padariyakam <mpadariy at redhat.com>
Date:   Thu Sep 21 20:19:44 2017 +0530

    cli: fix Coverity warning DEADCODE in gf_cli_attach_tier()

    Issue : At condition "ret", the value of "ret" must be equal to 0.
    The condition "ret" cannot be true since the value is always 0.
    Hence, the execution cannot reach the statement "goto out"

    Solution : The never-true if-condition and its body has to be removed

    Fix : The always false if-condition and the dead code under this
    if-condition was removed.

    Change-Id: I5c038b8ec9abf9b2f06dcfd981904b9dca1a0094
    BUG: 789278
    Signed-off-by: Mohammed Azhar Padariyakam <mpadariy at redhat.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list