aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.c
diff options
context:
space:
mode:
authorPhil Carmody <ext-phil.2.carmody@nokia.com>2009-07-23 15:29:10 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-08-14 20:01:36 +0300
commit758d8e46347aee199e7025b8c571bab75d2de63f (patch)
treec34a88972ec967785aa540156f776915c702ef4a /drivers/mtd/ubi/debug.c
parentUBI: print a warning if too many PEBs are corrupted (diff)
downloadlinux-dev-758d8e46347aee199e7025b8c571bab75d2de63f.tar.xz
linux-dev-758d8e46347aee199e7025b8c571bab75d2de63f.zip
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 <ext-phil.2.carmody@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/debug.c')
0 files changed, 0 insertions, 0 deletions