Re: [PATCH] dmascc: Return correct error codes

2016-02-16 Thread David Miller
From: Amitoj Kaur Chawla Date: Wed, 10 Feb 2016 00:12:36 +0530 > This change has been made with the goal that kernel functions should > return something more descriptive than -1 on failure. > > A variable `err` has been introduced for storing error codes. > > The return value of kzalloc on fail

[PATCH] dmascc: Return correct error codes

2016-02-09 Thread Amitoj Kaur Chawla
This change has been made with the goal that kernel functions should return something more descriptive than -1 on failure. A variable `err` has been introduced for storing error codes. The return value of kzalloc on failure should return a -1 and not a -ENOMEM. This was found using Coccinelle. A