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:
Adrien Destugues 2019-07-16 18:32:51 +02:00 committed by Stephan Aßmus
parent ca72c6784d
commit 439ca67c06
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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;