caif: checking the wrong variable
authorDan Carpenter <error27@gmail.com>
Sat, 15 Jan 2011 03:06:39 +0000 (03:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jan 2011 04:58:11 +0000 (20:58 -0800)
commite201efc9e62c55a037818a6693679be9e2167cd0
tree28334f820b4ce3218a643cda0967aaf63886f4a0
parent1985831684151c93492110fb03ce8edef8ee43c9
caif: checking the wrong variable

In the original code we check if (servl == NULL) twice.  The first time
should print the message that cfmuxl_remove_uplayer() failed and set
"ret" correctly, but instead it just returns success.  The second check
should be checking the value of "ret" instead of "servl".

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfcnfg.c