ti-ss-flash.c correct missed value reference
authorDaniel Jeong <gshark.jeong@gmail.com>
Tue, 3 Feb 2015 01:53:12 +0000 (10:53 +0900)
committerDaniel Jeong <gshark.jeong@gmail.com>
Tue, 3 Feb 2015 01:53:12 +0000 (10:53 +0900)
Signed-off-by: Daniel Jeong <gshark.jeong@gmail.com>
drivers/media/i2c/ti-ss-flash.c

index 560c95bcd2410c9b1bf7fdfd10a9d74243d5ae68..be1fd1bf2f53f93df4dbe82801ad75b853298d88 100644 (file)
@@ -563,7 +563,7 @@ static int ssflash_get_ctrl(struct v4l2_ctrl *ctrl)
                                if (rval < 0)
                                        goto out;
                        }
-                       if (rval & data->fault[icnt].mask)
+                       if (reg_val & data->fault[icnt].mask)
                                fault |= data->fault[icnt].v4l2_fault;
                }
                ctrl->cur.val = fault;