media: st-hva: hva-h264: use swap macro in hva_h264_encode
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 30 Oct 2017 04:18:47 +0000 (00:18 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 11:30:21 +0000 (07:30 -0400)
commit3fa013be95bb046490d3b11d546bf06d73c7e0e3
tree6e068b18251d63df422cd43528214f20744fda2f
parentd7ca1c9c15e309344e8dcd19826434359dff33b7
media: st-hva: hva-h264: use swap macro in hva_h264_encode

Make use of the swap macro and remove unnecessary variable tmp_frame.
This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/sti/hva/hva-h264.c