Return-Path: Subject: Re: [v2 5/7] remoteproc: Restructure firmware name allocation References: <20200415204858.2448-1-mathieu.poirier@linaro.org> <20200415204858.2448-6-mathieu.poirier@linaro.org> From: Markus Elfring Message-ID: <7a978c24-945d-8d39-3a0a-30e0678d569a@web.de> Date: Fri, 17 Apr 2020 17:48:49 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable To: Suman Anna , Mathieu Poirier , linux-remoteproc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alex Elder , Bjorn Andersson , Ohad Ben-Cohen List-ID: >> =C2=A0=C2=A0=C2=A0=C2=A0p =3D firmware ? kstrdup_const(=E2=80=A6) : kas= printf(=E2=80=A6); > > For simple assignments, I too prefer the ternary operator, Thanks for your feedback. > but in this case, I think it is better to leave the current code as is. Would you like to consider the use of the function =E2=80=9Ckvasprintf_con= st=E2=80=9D according to your review comment for the update step =E2=80=9C[PATCH v2 4/= 7] remoteproc: Use kstrdup_const() rather than kstrup()=E2=80=9D? Regards, Markus