diff mbox

[18/23] nfctype5: Remove useless initialization

Message ID 20170615182516.4508-19-mgreer@animalcreek.com (mailing list archive)
State Accepted
Delegated to: Samuel Ortiz
Headers show

Commit Message

Mark Greer June 15, 2017, 6:25 p.m. UTC
There is no point in assigning 'local_data' to 'cookie' when 'cookie'
is going to be reassigned before it is used.

Signed-off-by: Mark Greer <mgreer@animalcreek.com>
---
 plugins/nfctype5.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/plugins/nfctype5.c b/plugins/nfctype5.c
index f26d8fa..873ac79 100644
--- a/plugins/nfctype5.c
+++ b/plugins/nfctype5.c
@@ -430,7 +430,7 @@  static int t5_read(struct near_tag *tag, uint8_t offset, uint8_t *buf,
 		size_t len, t5_local_cb local_cb, void *local_data)
 {
 	struct type5_read_single_block_cmd t5_cmd;
-	struct t5_cookie *cookie = local_data;
+	struct t5_cookie *cookie;
 	uint8_t blk_size = near_tag_get_blk_size(tag);
 	int err;
 
@@ -529,7 +529,7 @@  static int t5_write(struct near_tag *tag, uint8_t offset, uint8_t *buf,
 		size_t len, t5_local_cb local_cb, void *local_data)
 {
 	struct type5_write_single_block_cmd *t5_cmd;
-	struct t5_cookie *cookie = local_data;
+	struct t5_cookie *cookie;
 	uint8_t blk_size = near_tag_get_blk_size(tag);
 	int err;