X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=lib%2Fts_bm.c;h=1f2234221dd1140a6f8a9b3177915fd2a422e579;hb=fbbc94d8486c6d683650269154c9a7d8897f35d7;hp=4cf250031f0f0a9abd3ea44f814bfec5e5392fd4;hpb=5593a733f968521444df84902901902233c17d8f;p=linux-2.6-microblaze.git diff --git a/lib/ts_bm.c b/lib/ts_bm.c index 4cf250031f0f..1f2234221dd1 100644 --- a/lib/ts_bm.c +++ b/lib/ts_bm.c @@ -80,7 +80,7 @@ static unsigned int bm_find(struct ts_config *conf, struct ts_state *state) /* London calling... */ DEBUGP("found!\n"); - return consumed += (shift-(bm->patlen-1)); + return consumed + (shift-(bm->patlen-1)); next: bs = bm->bad_shift[text[shift-i]];