From: Roel Kluin Date: Mon, 22 Jun 2009 23:06:40 +0000 (+0200) Subject: [SCSI] fnic: remove redundant BUG_ONs and fix checks on unsigned X-Git-Tag: v2.6.31-rc2~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87a2d34b0372dcf6bc4caf4d97a7889f5e62a1af;p=pandora-kernel.git [SCSI] fnic: remove redundant BUG_ONs and fix checks on unsigned The shost sg tablesize is set to FNIC_MAX_SG_DESC_CNT and fnic uses scsi_dma_map, so both BUG_ONs can be removed. scsi_dma_map may return -ENOMEM, sg_count should be int to catch that. Signed-off-by: Roel Kluin Signed-off-by: James Bottomley --- Reading git-diff-tree failed