]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/misc/habanalabs/common/command_submission.c
habanalabs: remove unused but set variable 'ctx_asid'
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 29 Jul 2020 15:59:02 +0000 (23:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 16:02:21 +0000 (18:02 +0200)
commit22362aa30bad6f03b5bcbbeee3cdc61950d40086
treeeb73ce1fe1bdf881ff89a0187d27f15e6312522c
parent8f042191d430f4144d23ebc2206e8cf73e6b1cbf
habanalabs: remove unused but set variable 'ctx_asid'

Gcc report warning as follows:

drivers/misc/habanalabs/common/command_submission.c:373:6: warning:
 variable 'ctx_asid' set but not used [-Wunused-but-set-variable]
  373 |  int ctx_asid, rc;
      |      ^~~~~~~~

This variable is not used in function cs_timedout(), this commit
remove it to fix the warning.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200729155902.33976-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/common/command_submission.c