Commit 9ffb4b8b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: uart-gb: fix up typo from previous patch moving the status variable around.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 25d0f81a
...@@ -159,6 +159,7 @@ static int get_version(struct gb_tty *tty) ...@@ -159,6 +159,7 @@ static int get_version(struct gb_tty *tty)
gb_connection_err(tty->connection, "result %hhu", gb_connection_err(tty->connection, "result %hhu",
operation->result); operation->result);
} else { } else {
response = operation->response.payload;
if (response->major > GB_UART_VERSION_MAJOR) { if (response->major > GB_UART_VERSION_MAJOR) {
pr_err("unsupported major version (%hhu > %hhu)\n", pr_err("unsupported major version (%hhu > %hhu)\n",
response->major, GB_UART_VERSION_MAJOR); response->major, GB_UART_VERSION_MAJOR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment