Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:44676 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751427Ab1KIHzK convert rfc822-to-8bit (ORCPT ); Wed, 9 Nov 2011 02:55:10 -0500 From: "Elias, Ilan" To: Lauro Ramos Venancio CC: "aloisio.almeida@openbossa.org" , "samuel@sortiz.org" , "linville@tuxdriver.com" , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH v3 3/3] NFC: Check if NCI data flow control is used Date: Wed, 9 Nov 2011 07:54:52 +0000 Message-ID: (sfid-20111109_085513_970943_AFAABF2F) References: <1320152097-2711-1-git-send-email-ilane@ti.com> <1320152097-2711-4-git-send-email-ilane@ti.com> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Lauro, > > - ? ? ? ? ? ? ? atomic_dec(&ndev->credits_cnt); > > + ? ? ? ? ? ? ? /* Check if data flow control is used */ > > + ? ? ? ? ? ? ? if (atomic_read(&ndev->credits_cnt) != 0xff) > > + ? ? ? ? ? ? ? ? ? ? ? atomic_dec(&ndev->credits_cnt); > > It would be better to replace the 0xff by a define. OK, I'll use a define instead of 0xff. > > Lauro > Thanks & BR, Ilan