This fixes a shadow variables found by -Wshadow. The variable ep_ctx is only used in certain switch cases so declare it when it is needed. Signed-off-by: Daniel Leung <daniel.leung@intel.com>