Commit 7ff93874 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] unreachable code in drivers_media_video_cpia_pp.c

From:  Scott Russell <scott@pantastik.com>

  - Rearranged unreachable code reported via kbugs.org
parent 94cedd16
...@@ -605,8 +605,8 @@ static int cpia_pp_transferCmd(void *privdata, u8 *command, u8 *data) ...@@ -605,8 +605,8 @@ static int cpia_pp_transferCmd(void *privdata, u8 *command, u8 *data)
return -EINVAL; return -EINVAL;
} }
if((err = ReadPacket(cam, buffer, 8)) < 0) { if((err = ReadPacket(cam, buffer, 8)) < 0) {
return err;
DBG("Error reading command result\n"); DBG("Error reading command result\n");
return err;
} }
memcpy(data, buffer, databytes); memcpy(data, buffer, databytes);
} else if(command[0] == DATA_OUT) { } else if(command[0] == DATA_OUT) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment