Style fixes

This commit is contained in:
dogtopus 2019-12-29 22:20:54 -04:00
parent 01e1e1a7b8
commit 300338220a
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,8 @@
#include "platform/config.h" #include "platform/config.h"
#include "platform/platform.h" #include "platform/platform.h"
void slider_config_load(struct slider_config *cfg, const wchar_t *filename) { void slider_config_load(struct slider_config *cfg, const wchar_t *filename)
{
assert(cfg != NULL); assert(cfg != NULL);
assert(filename != NULL); assert(filename != NULL);

View File

@ -41,6 +41,7 @@ static uint8_t slider_readable_bytes[520];
HRESULT slider_hook_init(const struct slider_config *cfg) HRESULT slider_hook_init(const struct slider_config *cfg)
{ {
assert(cfg != NULL); assert(cfg != NULL);
if (!cfg->enable) { if (!cfg->enable) {
return S_FALSE; return S_FALSE;
} }
@ -162,7 +163,7 @@ static HRESULT slider_req_nop(uint8_t cmd)
{ {
struct slider_hdr resp; struct slider_hdr resp;
dprintf("Diva slider: No-op cmd 0x%02x\n", cmd); dprintf("Diva slider: No-op cmd 0x%#02x\n", cmd);
resp.sync = SLIDER_FRAME_SYNC; resp.sync = SLIDER_FRAME_SYNC;
resp.cmd = cmd; resp.cmd = cmd;