diff options
author | Denis Efremov <efremov@linux.com> | 2019-09-26 00:36:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-10 15:24:19 +0200 |
commit | 32a738704d7fc20fcece0e14e4e44ec68689746f (patch) | |
tree | 809450ac14a747d96e4c0e5e10738214dc5bc79b /drivers/greybus | |
parent | bb4d6e0ee83c91b34585d1ce2aceed1ae2d3729f (diff) | |
download | linux-32a738704d7fc20fcece0e14e4e44ec68689746f.tar.gz linux-32a738704d7fc20fcece0e14e4e44ec68689746f.tar.bz2 linux-32a738704d7fc20fcece0e14e4e44ec68689746f.zip |
greybus: remove excessive check in gb_connection_hd_cport_quiesce()
Function pointer "hd->driver->cport_quiesce" is already checked
at the beginning of gb_connection_hd_cport_quiesce(). Thus, the
second check can be removed.
Signed-off-by: Denis Efremov <efremov@linux.com>
Acked-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20190925213656.8950-1-efremov@linux.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/greybus')
-rw-r--r-- | drivers/greybus/connection.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/greybus/connection.c b/drivers/greybus/connection.c index fc8f57f97ce6..e3799a53a193 100644 --- a/drivers/greybus/connection.c +++ b/drivers/greybus/connection.c @@ -361,9 +361,6 @@ static int gb_connection_hd_cport_quiesce(struct gb_connection *connection) if (connection->mode_switch) peer_space += sizeof(struct gb_operation_msg_hdr); - if (!hd->driver->cport_quiesce) - return 0; - ret = hd->driver->cport_quiesce(hd, connection->hd_cport_id, peer_space, GB_CONNECTION_CPORT_QUIESCE_TIMEOUT); |