Fix warnings from NVRESULT due to unused lambda capture

A previously used `this` capture is no longer used since the introduction of the static logger.
This commit is contained in:
PixelyIon 2021-11-12 00:12:12 +05:30
parent 8826c113b0
commit 93ea919c8f

View File

@ -7,12 +7,11 @@
#include "driver.h"
#include "devices/nvdevice.h"
#define NVRESULT(x) [&response, this](NvResult err) { \
if (err != NvResult::Success) \
#define NVRESULT(x) [&response](NvResult err) { \
if (err != NvResult::Success) \
Logger::Debug("IOCTL Failed: 0x{:X}", err); \
\
response.Push<NvResult>(err); \
return Result{}; \
response.Push<NvResult>(err); \
return Result{}; \
} (x)
namespace skyline::service::nvdrv {