If we use "tmp" or something like this, we can expect that it just
stores the previous pointer and do something else with the previous
pointer. But, in this function, it just to cast it out.
Cc: Keith Busch <kbusch@kernel.org>
Cc: Matias Bjorling <mb@lightnvm.io>
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Javier González <javier@javigon.com>
static void show_lnvm_id_ns(struct nvme_nvm_id *id, unsigned int flags)
{
- void *tmp = id;
switch (id->ver_id) {
case 1:
- show_lnvm_id12_ns(tmp, flags);
+ show_lnvm_id12_ns((void *) id, flags);
break;
case 2:
- show_lnvm_id20_ns(tmp, flags);
+ show_lnvm_id20_ns((void *) id, flags);
break;
default:
fprintf(stderr, "Version %d not supported.\n",