]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: message: fusion: Use BUG_ON instead of if condition followed by BUG
authorzhouchuangao <zhouchuangao@vivo.com>
Tue, 30 Mar 2021 12:46:01 +0000 (05:46 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Apr 2021 03:34:36 +0000 (23:34 -0400)
commit4298d05d0e700d4739fc14634b89f2b2779820d9
treeb7a4a01d650377a068bf8fe6ce33a3ac56e222cd
parent6693f14751b34d8495bdf718c3ac75613b4066f2
scsi: message: fusion: Use BUG_ON instead of if condition followed by BUG

BUG_ON() uses unlikely in if() which can be optimized at compile time.

Link: https://lore.kernel.org/r/1617108361-6870-1-git-send-email-zhouchuangao@vivo.com
Signed-off-by: zhouchuangao <zhouchuangao@vivo.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptsas.c