ANDROID: fiq_debugger: Fix minor bug in code

We fix a typo in the code which had us comparing a pointer instead
of the value which was being pointed to.  This turns out to be
a relatively benign bug, as we'd incorrectly pass in the empty
string instead of NULL to the function, and the function can handle
both.  But we fix it so the code is clearly doing what we intend.

Signed-off-by: Greg Kaiser <gkaiser@google.com>
Change-Id: Ib059819775a3bebca357d4ce684be779853156e3
This commit is contained in:
Greg Kaiser 2017-09-05 15:55:41 -07:00 committed by Dmitry Shmidt
parent a8935c98cf
commit 3479acf11d

View file

@ -401,7 +401,7 @@ static void fiq_debugger_work(struct work_struct *work)
cmd += 6; cmd += 6;
while (*cmd == ' ') while (*cmd == ' ')
cmd++; cmd++;
if (cmd != '\0') if (*cmd != '\0')
kernel_restart(cmd); kernel_restart(cmd);
else else
kernel_restart(NULL); kernel_restart(NULL);