I just ran the static analyser cppcheck over the source code of the linux kernel version 3.6-rc6. It said [linux-3.6-rc6/drivers/infiniband/hw/nes/nes_verbs.c:3008]: (warning) Redundant assignment of "next_iwarp_state" in switch The source code is switch (nesqp->hw_iwarp_state) { case NES_AEQE_IWARP_STATE_CLOSING: next_iwarp_state = NES_CQP_QP_IWARP_STATE_CLOSING; case NES_AEQE_IWARP_STATE_TERMINATE: That looks like a possible missing break after the first case.
Created attachment 81811 [details] Fix for the missing break in the switch statement
A patch referencing this bug report has been merged in Linux v3.7-rc1: commit d5fb476a10a9de56fb518886619ae9a6bf7c7efd Author: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com> Date: Tue Oct 2 16:38:12 2012 +0000 RDMA/nes: Add missing break to switch.