Itseez/opencv — pull request #2771 by SpecLad (2014-05-20 10:15:49+00:00)
Title: Fixed several problems found by PVS-Studio.

This fixes all problems from the article [Checking OpenCV with PVS-Studio](http://www.viva64.com/en/b/0191/) that are not already fixed and are not in 3rdparty or the legacy module.

The problems fixed are two instances of useless code and one instance of unspecified behavior (right-shifting a negative number).