OSDN Git Service

qseecom: fix macro QSEECOM_ALIGN definition issue
authorZhen Kong <zkong@codeaurora.org>
Sat, 6 Feb 2016 01:46:40 +0000 (17:46 -0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 29 Mar 2017 20:51:51 +0000 (13:51 -0700)
commitcb2d1d68c30c525a5eedfe9f67a2a3843c71bc67
treec2dfd267c22541a0c17a0f1c7a32ef276516e3fa
parent664cdd33f956accabebd29edba6c220b1580744d
qseecom: fix macro QSEECOM_ALIGN definition issue

In macro QSEECOM_ALIGN, change (x + QSEECOM_ALIGN_SIZE) to
(x + QSEECOM_ALIGN_MASK); otherwise, when x is already aligned,
QSEECOM_ALIGN(x) will get (x + QSEECOM_ALIGN_SIZE), but it should
be x. Also, remove the dulplicate QSEECOM_ALIGN definition
in hdcp.c and mpq_sdmx.c, since they already include
"qseecom_kernel.h"

Change-Id: I9dbcadb618372fce71c2ff7ab62ca691afe7c7fa
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
drivers/misc/hdcp.c
drivers/misc/qseecom_kernel.h