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@xxxxxxxxxxxxxxx> --- plugins/nfctype5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.13.0