From: Phil Carmody Date: Thu, 23 Jul 2009 13:29:10 +0000 (+0200) Subject: UBI: eliminate possible undefined behaviour X-Git-Tag: Release-2010-05/1~3^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d0bf3221b2ce0d4de04dd9b35e40fbd0f8607b2;p=pandora-kernel.git UBI: eliminate possible undefined behaviour The assignment to pos when rb is finally NULL is undefined behaviour. Upon seeing that assignment, GCC may assume that rb is not NULL, and the loop condition ``rb'' may be optimised away. Signed-off-by: Phil Carmody Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed