Thread (43 messages) 43 messages, 4 authors, 2022-01-12

Re: [PATCH v2 02/14] net: wwan: t7xx: Add control DMA interface

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2021-11-19 08:29:09
Also in: netdev

On Thu, Nov 18, 2021 at 10:36:32PM -0800, Martinez, Ricardo wrote:
On 11/1/2021 7:03 AM, Andy Shevchenko wrote:
quoted
On Sun, Oct 31, 2021 at 08:56:23PM -0700, Ricardo Martinez wrote:
...
quoted
quoted
+		ret = cldma_gpd_rx_from_queue(queue, budget, &over_budget);
+		if (ret == -ENODATA)
+			return 0;
+
+		if (ret)
+			return ret;
Drop redundant blank line
The style followed is to keep a blank line after 'if' blocks.

Is that acceptable as long as it is consistent across the driver?
The idea behind suggestion is that you check for value returned from the call.
So, both if:s are tighten to that call and can be considered as a whole.

It doesn't mean you should blindly remove blank lines everywhere.

...
quoted
quoted
+exit:
Seems useless.
This tag is used when the PM patch is introduced later in the same series.
Can you give it better name?
quoted
+	return ret;
-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help