According to the chackpatch.pl, comparison to NULL could
be written "!card".
Signed-off-by: Peng Li <redacted>
---
drivers/net/wan/c101.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -307,7 +307,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase)}card=kzalloc(sizeof(card_t),GFP_KERNEL);-if(card==NULL)+if(!card)return-ENOBUFS;card->dev=alloc_hdlcdev(card);
@@ -381,7 +381,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase)staticint__initc101_init(void){-if(hw==NULL){+if(!hw){#ifdef MODULEpr_info("no card initialized\n");#endif
This patch fixes the checkpatch error about missing a blank line
after declarations.
Signed-off-by: Peng Li <redacted>
---
drivers/net/wan/c101.c | 1 +
1 file changed, 1 insertion(+)
According to the chackpatch.pl, no space before tabs.
Signed-off-by: Peng Li <redacted>
---
drivers/net/wan/c101.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
On Sat, 19 Jun 2021 15:28:35 +0800 you wrote:
This patchset clean up some code style issues.
Peng Li (3):
net: c101: add blank line after declarations
net: c101: replace comparison to NULL with "!card"
net: c101: remove redundant spaces
[...]