perf tools: Fix "==" into "=" in ui_browser__warning assignment
authorzhangdianfang <zhangdianfang@huawei.com>
Fri, 30 May 2014 00:53:58 +0000 (08:53 +0800)
committerJiri Olsa <jolsa@kernel.org>
Tue, 3 Jun 2014 19:34:48 +0000 (21:34 +0200)
Convert "==" into "=" in ui_browser__warning assignment.

Bug description: https://bugzilla.kernel.org/show_bug.cgi?id=76751

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Dianfang Zhang <zhangdianfang@huawei.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jean Delvare <jdelvare@suse.de>
Link: http://lkml.kernel.org/r/20140530154709.GC1202@kernel.org
[ changed the changelog a bit ]
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/ui/browser.c

index d11541d4d7d7ffcddad8d093b2e79f697967292a..3ccf6e14f89bfe425fa9467c02f028e932642b72 100644 (file)
@@ -194,7 +194,7 @@ int ui_browser__warning(struct ui_browser *browser, int timeout,
                ui_helpline__vpush(format, args);
                va_end(args);
        } else {
-               while ((key == ui__question_window("Warning!", text,
+               while ((key = ui__question_window("Warning!", text,
                                                   "Press any key...",
                                                   timeout)) == K_RESIZE)
                        ui_browser__handle_resize(browser);