[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1311760070-21532-6-git-send-email-sven@narfation.org>
Date: Wed, 27 Jul 2011 11:47:45 +0200
From: Sven Eckelmann <sven@...fation.org>
To: linux-arch@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Sven Eckelmann <sven@...fation.org>,
Ursula Braun <ursula.braun@...ibm.com>,
Frank Blaschka <blaschka@...ux.vnet.ibm.com>,
linux390@...ibm.com, linux-s390@...r.kernel.org
Subject: [PATCHv4 06/11] qeth: Use *_dec_not_zero instead of *_add_unless
atomic_dec_not_zero is defined for each architecture through
<linux/atomic.h> to provide the functionality of
atomic_add_unless(x, -1, 0).
Signed-off-by: Sven Eckelmann <sven@...fation.org>
Cc: Ursula Braun <ursula.braun@...ibm.com>
Cc: Frank Blaschka <blaschka@...ux.vnet.ibm.com>
Cc: linux390@...ibm.com
Cc: linux-s390@...r.kernel.org
---
drivers/s390/net/qeth_core_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 4550573..56ceed2 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -2765,7 +2765,7 @@ void qeth_queue_input_buffer(struct qeth_card *card, int index)
atomic_set(&card->force_alloc_skb, 3);
count = newcount;
} else {
- atomic_add_unless(&card->force_alloc_skb, -1, 0);
+ atomic_dec_not_zero(&card->force_alloc_skb);
}
/*
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists