diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-07-29 17:00:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:53 -0700 |
commit | 7c369f405bc918f3245c7ee0b0ad6c6b6c750166 (patch) | |
tree | fc5777fe20dcecbf56743c6203afbbb2de138121 /drivers/staging/hv/osd.c | |
parent | 420beac4fcc9efd6f7d838ef7cc5693c58c98015 (diff) | |
download | op-kernel-dev-7c369f405bc918f3245c7ee0b0ad6c6b6c750166.zip op-kernel-dev-7c369f405bc918f3245c7ee0b0ad6c6b6c750166.tar.gz |
Staging: hv: remove wrapper functions for bit operations
There were several Bit* functions that did nothing but call the kernel
functions with the parameters reversed. Remove these and call the
functions directly.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/osd.c')
-rw-r--r-- | drivers/staging/hv/osd.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c index 8ca56a4..ff01a7b 100644 --- a/drivers/staging/hv/osd.c +++ b/drivers/staging/hv/osd.c @@ -56,33 +56,6 @@ struct osd_callback_struct { void *data; }; - -void BitSet(unsigned int* addr, int bit) -{ - set_bit(bit, (unsigned long*)addr); -} - -int BitTest(unsigned int* addr, int bit) -{ - return test_bit(bit, (unsigned long*)addr); -} - -void BitClear(unsigned int* addr, int bit) -{ - clear_bit(bit, (unsigned long*)addr); -} - -int BitTestAndClear(unsigned int* addr, int bit) -{ - return test_and_clear_bit(bit, (unsigned long*)addr); -} - -int BitTestAndSet(unsigned int* addr, int bit) -{ - return test_and_set_bit(bit, (unsigned long*)addr); -} - - int InterlockedIncrement(int *val) { return atomic_inc_return((atomic_t*)val); |