p->buffer_3aa_out is only used for the primary camera, the
_camerasrc_release_device_buffer() function has always been called with
p->buffer_3aa_out == NULL and thus had no effect, so remove this redundant call.
Change-Id: I342f41da448b2fa86f55a8940d1a773be855ce97
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
/* buffer - ta */
camsrc_warning("ta");
- if (p->format_3aa0_out.num_buffers) {
+ if (p->buffer_3aa_out) {
_camerasrc_release_device_buffer(p->buffer_3aa_out, p->format_3aa0_out.num_buffers);
p->buffer_3aa_out = NULL;
- } else if (p->format_3aa1.num_buffers) {
- _camerasrc_release_device_buffer(p->buffer_3aa_out, p->format_3aa1.num_buffers);
- p->buffer_3aa_out = NULL;
}
/* buffer - isp */