Fix cert-dcl16-c clang-tidy warnings
Bug: 120614316 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c Change-Id: I744040edc476bf2bb58413a2a14965c27113a5bd
This commit is contained in:
committed by
Chih-hung Hsieh
parent
0b2aabd6e6
commit
3d68176cfd
@@ -35,7 +35,7 @@ const std::string CUSTOM_TYPE_PREFIX("com.google.hardware.sensor.hid_dynamic.");
|
||||
HidRawSensor::HidRawSensor(
|
||||
SP(HidDevice) device, uint32_t usage, const std::vector<HidParser::ReportPacket> &packets)
|
||||
: mReportingStateId(-1), mPowerStateId(-1), mReportIntervalId(-1), mInputReportId(-1),
|
||||
mEnabled(false), mSamplingPeriod(1000ll*1000*1000), mBatchingPeriod(0),
|
||||
mEnabled(false), mSamplingPeriod(1000LL*1000*1000), mBatchingPeriod(0),
|
||||
mDevice(device), mValid(false) {
|
||||
if (device == nullptr) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user