diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-05-18 17:06:28 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-05-18 17:06:28 +0200 |
commit | 156910fff101a2479186bc84643290dad884fbc8 (patch) | |
tree | d70f4c80bd54ea70e49e6d306e0d3930003952e7 /linux/src | |
parent | 4db43753567c628632f3391dd87d9b788d51dec8 (diff) |
Merge two asm constraints
* linux/src/drivers/scsi/ultrastor.c (find_and_clear_bit_16): Use + modifier
instead of using both a read and a write constraint.
Diffstat (limited to 'linux/src')
-rw-r--r-- | linux/src/drivers/scsi/ultrastor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/src/drivers/scsi/ultrastor.c b/linux/src/drivers/scsi/ultrastor.c index 3d9b411..a1a1982 100644 --- a/linux/src/drivers/scsi/ultrastor.c +++ b/linux/src/drivers/scsi/ultrastor.c @@ -306,7 +306,7 @@ static inline int find_and_clear_bit_16(unsigned short *field) cli(); if (*field == 0) panic("No free mscp"); asm("xorl %0,%0\n0:\tbsfw %1,%w0\n\tbtr %0,%1\n\tjnc 0b" - : "=&r" (rv), "=m" (*field) : "1" (*field)); + : "=&r" (rv), "+m" (*field)); restore_flags(flags); return rv; } |