From 75adfe26c86929ce7da54b7e65f1a97208a96355 Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 11 2020 12:12:57 +0000 Subject: driver: toks_driver_ctx_alloc(): use correct code path upon success. --- diff --git a/src/driver/toks_driver_ctx.c b/src/driver/toks_driver_ctx.c index 5354dc7..fc63806 100644 --- a/src/driver/toks_driver_ctx.c +++ b/src/driver/toks_driver_ctx.c @@ -170,6 +170,8 @@ static struct toks_driver_ctx_impl * toks_driver_ctx_alloc( if (ntapi->tt_get_runtime_data(&rtdata,0)) return 0; + break; + default: return 0; }