diff options
author | Satyam Sharma <ssatyam@cse.iitk.ac.in> | 2007-07-09 15:00:07 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-15 10:34:45 -0400 |
commit | 75a1099c0bfc5545088cdc9eae2fd98015656595 (patch) | |
tree | e96c28d581346b1e358ff6dc8349f99d90013052 /drivers/scsi | |
parent | a3f249a242e804b61a14518ec9d5ec8ee48720d7 (diff) |
[SCSI] aic7xxx_old: remove redundant GFP_ATOMIC from kmalloc
drivers/scsi/aic7xxx_old.c:aic7xxx_slave_alloc() unnecessarily passes
GFP_ATOMIC (along with GFP_KERNEL) to kmalloc() from a context that is not
atomic. Remove the pointless GFP_ATOMIC.
Signed-off-by: Satyam Sharma <ssatyam@cse.iitk.ac.in>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Doug Ledford <dledford@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/aic7xxx_old.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c index f5e3c6b27c70..4998bb850c49 100644 --- a/drivers/scsi/aic7xxx_old.c +++ b/drivers/scsi/aic7xxx_old.c | |||
@@ -6572,7 +6572,7 @@ aic7xxx_slave_alloc(struct scsi_device *SDptr) | |||
6572 | struct aic7xxx_host *p = (struct aic7xxx_host *)SDptr->host->hostdata; | 6572 | struct aic7xxx_host *p = (struct aic7xxx_host *)SDptr->host->hostdata; |
6573 | struct aic_dev_data *aic_dev; | 6573 | struct aic_dev_data *aic_dev; |
6574 | 6574 | ||
6575 | aic_dev = kmalloc(sizeof(struct aic_dev_data), GFP_ATOMIC | GFP_KERNEL); | 6575 | aic_dev = kmalloc(sizeof(struct aic_dev_data), GFP_KERNEL); |
6576 | if(!aic_dev) | 6576 | if(!aic_dev) |
6577 | return 1; | 6577 | return 1; |
6578 | /* | 6578 | /* |