Re: [Cocci] [PATCH 1/1] kernel-audit: Deletion of an unnecessary check before the function call "audit_log_end"
From: Julia Lawall
Date: Sun Nov 23 2014 - 06:52:25 EST
> > No, it's not. You should just try to write the most readable software
> > you can instead of removing if statements because you can.
>
> Additional safety checks have also got an effect on source code readability, haven't they?
Normally, tests only hurt readability if they cannot be false or cannot be
true. Making a choice apparent when there really is a choice would seem
to aid understanding. Program analysis tools can also potentially exploit
this information, which you are so systmatically removing.
julia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/