Re: [PATCH][next] ubifs: remove redundant assignment to pointer fname
From: Colin Ian King
Date: Fri Jul 05 2019 - 04:31:33 EST
On 05/07/2019 09:24, Sergei Shtylyov wrote:
> Hello!
>
> On 05.07.2019 1:28, Colin King wrote:
>
>> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>>
>> The pointer fname rc is being assigned with a value that is never
>
> ÂÂ rc?
Oops, cut'n'paste error. Do you want me to resend to can this be fixed
when it's applied?
Colin
>
>> read because the function returns after the assignment. The assignment
>> is redundant and can be removed.
>>
>> Addresses-Coverity: ("Unused value")
>> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>> ---
>> Â fs/ubifs/debug.c | 1 -
>> Â 1 file changed, 1 deletion(-)
>>
>> diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
>> index 92fe5c5ed78a..95da71e13fc8 100644
>> --- a/fs/ubifs/debug.c
>> +++ b/fs/ubifs/debug.c
>> @@ -2817,7 +2817,6 @@ void dbg_debugfs_init_fs(struct ubifs_info *c)
>> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ c->vi.ubi_num, c->vi.vol_id);
>> ÂÂÂÂÂ if (n == UBIFS_DFS_DIR_LEN) {
>> ÂÂÂÂÂÂÂÂÂ /* The array size is too small */
>> -ÂÂÂÂÂÂÂ fname = UBIFS_DFS_DIR_NAME;
>> ÂÂÂÂÂÂÂÂÂ return;
>> ÂÂÂÂÂ }
>> Â
>
> MBR, Sergei
>