]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
isci: audit usage of BUG_ON macro in isci driver
authorBartosz Barcinski <Bartosz.Barcinski@intel.com>
Wed, 13 Apr 2011 00:28:43 +0000 (17:28 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:00:37 +0000 (04:00 -0700)
commit6cb4d6b382be6345c2d0c4b1b90dfdf9af32da7e
tree9d9849a1557888051429a36d4ffa2cbd2dd3591e
parent467e855a0331f619f41fbf7391bc29ec0ca923a0
isci: audit usage of BUG_ON macro in isci driver

Removes unnecessary usage of BUG_ON macro, excluding core directory.
In some cases macro is unnecesary, check is done in caller function.
In other cases macro is replaced by if construction with
appropriate warning.

Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com>
[changed some survivable bug conditions to WARN_ONCE]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/core/scic_sds_request.c
drivers/scsi/isci/init.c
drivers/scsi/isci/port.c
drivers/scsi/isci/remote_device.c
drivers/scsi/isci/request.c
drivers/scsi/isci/request.h
drivers/scsi/isci/task.c