From: Adil Mujeeb Date: Wed, 7 Nov 2012 18:50:01 +0000 (+0530) Subject: Staging: winbond: mds: Fixed coding style issues X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2820663c6f08f838398b0727773fb44e08876969;p=openwrt%2Fstaging%2Fblogic.git Staging: winbond: mds: Fixed coding style issues Removed printk tracing call Signed-off-by: Adil Mujeeb Acked-by: Pavel Machek Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/winbond/mds.c b/drivers/staging/winbond/mds.c index 43990e87d641..faa93f0ee102 100644 --- a/drivers/staging/winbond/mds.c +++ b/drivers/staging/winbond/mds.c @@ -476,11 +476,8 @@ Mds_Tx(struct wbsoft_priv *adapter) /* 931130.5.b */ FragmentCount = PacketSize/FragmentThreshold + 1; stmp = PacketSize + FragmentCount*32 + 8; /* 931130.5.c 8:MIC */ - if ((XmitBufSize + stmp) >= MAX_USB_TX_BUFFER) { - printk("[Mds_Tx] Excess max tx buffer.\n"); + if ((XmitBufSize + stmp) >= MAX_USB_TX_BUFFER) break; /* buffer is not enough */ - } - /* * Start transmitting