Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When running checkpatch on cma.c the following error was found: ERROR: do not use assignment in if condition torvalds#413: FILE: drivers/infiniband/tmp.c:413: + if ((ret = (id_priv->state == comp))) This patch moves the assignment of ret to the previous line. The if statement then checks the value of ret assigned on the previous line. The assigned value of ret is not changed. Testing involved recompiling and loading the kernel. After the changes checkpatch does not report this the error in cma.c. Signed-off-by: Max Hirsch <max.hirsch@gmail.com>
- Loading branch information