Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 821168b3 authored by Suraj Dongre's avatar Suraj Dongre Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: jpeg flush function cleanup



Remove duplicate code to deregister IRQ callback

Change-Id: Ib05ecfa38c172895bdc95b6ea5413be666122c55
Signed-off-by: default avatarSuraj Dongre <sdongre@codeaurora.org>
parent 4363ce9a
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -770,13 +770,6 @@ static int cam_jpeg_mgr_flush(void *hw_mgr_priv,
			} else {
				CAM_ERR(CAM_JPEG, "process_cmd null ");
			}
			rc = hw_mgr->devices[dev_type][0]->hw_ops.process_cmd(
				hw_mgr->devices[dev_type][0]->hw_priv,
				CAM_JPEG_CMD_SET_IRQ_CB,
				&irq_cb, sizeof(irq_cb));
			if (rc)
				CAM_ERR(CAM_JPEG,
					"CMD_SET_IRQ_CB failed %d", rc);

			if (hw_mgr->devices[dev_type][0]->hw_ops.stop) {
				rc = hw_mgr->devices[dev_type][0]->hw_ops.stop(