FogBugz #201449: Fix bug found by sparse tool.

The sparse code analysis tools identified a locking problem
in the Cadence QSPI driver.  This patch is the fix.

In the process, I removed a continue, renamed a variable, and
reversed the logic of an if-block.

Signed-off-by: Graham Moore <grmoore@altera.com>