PVS V519: setting the same variable twice
Change-Id: I3967f1c77c89d1aa9d040d8ff7a8593daca8f8b2 Reviewed-on: https://review.haiku-os.org/c/1603 Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
This commit is contained in:
parent
ca72c6784d
commit
439ca67c06
@ -196,7 +196,6 @@ static void nvme_ctrlr_set_intel_supported_features(struct nvme_ctrlr *ctrlr)
|
||||
{
|
||||
bool *supported_feature = ctrlr->feature_supported;
|
||||
|
||||
supported_feature[NVME_INTEL_FEAT_MAX_LBA] = true;
|
||||
supported_feature[NVME_INTEL_FEAT_MAX_LBA] = true;
|
||||
supported_feature[NVME_INTEL_FEAT_NATIVE_MAX_LBA] = true;
|
||||
supported_feature[NVME_INTEL_FEAT_POWER_GOVERNOR_SETTING] = true;
|
||||
|
@ -89,7 +89,7 @@ UserlandFS::KernelEmu::new_path(const char *path, char **copy)
|
||||
strcpy(copiedPath, path);
|
||||
// append a dot, if desired
|
||||
if (appendDot) {
|
||||
copiedPath[len] = '.';
|
||||
copiedPath[len - 1] = '.';
|
||||
copiedPath[len] = '\0';
|
||||
}
|
||||
*copy = copiedPath;
|
||||
|
Loading…
Reference in New Issue
Block a user