提交 2c383283 编写于 作者: A Arron Wang 提交者: Samuel Ortiz

NFC: Fix secure element state check

Another typo from the initial commit where we check for the secure
element type field instead of its state when enabling or disabling it.
Signed-off-by: NArron Wang <arron.wang@intel.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 4eba11e8
......@@ -583,7 +583,7 @@ int nfc_enable_se(struct nfc_dev *dev, u32 se_idx)
goto error;
}
if (se->type == NFC_SE_ENABLED) {
if (se->state == NFC_SE_ENABLED) {
rc = -EALREADY;
goto error;
}
......@@ -626,7 +626,7 @@ int nfc_disable_se(struct nfc_dev *dev, u32 se_idx)
goto error;
}
if (se->type == NFC_SE_DISABLED) {
if (se->state == NFC_SE_DISABLED) {
rc = -EALREADY;
goto error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册