From 495cd03c2c5ef78e5a9bc5739bd835c0e2c51e00 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 24 Apr 2019 03:18:51 -0700 Subject: [PATCH] remove redundant null check --- include/stratosphere/mitm/mitm_session.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stratosphere/mitm/mitm_session.hpp b/include/stratosphere/mitm/mitm_session.hpp index e4d069f6..d9bfe18f 100644 --- a/include/stratosphere/mitm/mitm_session.hpp +++ b/include/stratosphere/mitm/mitm_session.hpp @@ -124,7 +124,7 @@ class MitmSession final : public ServiceSession { case DomainMessageType_Close: { auto sub_obj = ctx->obj_holder->GetServiceObject()->GetObject(ctx->request.InThisObjectId); - if (sub_obj == nullptr || (!sub_obj)) { + if (sub_obj == nullptr) { rc = ForwardRequest(ctx); return rc; }