synaptics: Add an explicit assert on the response

The response must be non-NULL in the function. Add an explicit assert to
appease to static code analysis tools.
This commit is contained in:
Benjamin Berg 2019-11-25 18:37:12 +01:00
parent ada5d488fa
commit 8ba6f4dad2

View file

@ -604,6 +604,8 @@ verify_msg_cb (FpiDeviceSynaptics *self,
return; return;
} }
g_assert (resp != NULL);
verify_resp = &resp->response.verify_resp; verify_resp = &resp->response.verify_resp;
switch (resp->response_id) switch (resp->response_id)