* [PATCH] jfs: remove unused pointer tblk
@ 2022-04-24 16:13 Colin Ian King
2022-04-25 14:48 ` Dan Carpenter
0 siblings, 1 reply; 3+ messages in thread
From: Colin Ian King @ 2022-04-24 16:13 UTC (permalink / raw)
To: Dave Kleikamp, jfs-discussion; +Cc: kernel-janitors, linux-kernel
The pointer tlbk is not used, it is redundant and can be removed.
Cleans up cppcheck warning:
linux/fs/jfs/jfs_xtree.c:2551:17: style: Unused variable: tblk [unusedVariable]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
fs/jfs/jfs_xtree.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/jfs/jfs_xtree.c b/fs/jfs/jfs_xtree.c
index 3148e9b35f3b..d29979d0a6aa 100644
--- a/fs/jfs/jfs_xtree.c
+++ b/fs/jfs/jfs_xtree.c
@@ -2548,7 +2548,6 @@ xtRelocate(tid_t tid, struct inode * ip, xad_t * oxad, /* old XAD */
int xtype)
{ /* extent type: XTPAGE or DATAEXT */
int rc = 0;
- struct tblock *tblk;
struct tlock *tlck;
struct xtlock *xtlck;
struct metapage *mp, *pmp, *lmp, *rmp; /* meta-page buffer */
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] jfs: remove unused pointer tblk
2022-04-24 16:13 [PATCH] jfs: remove unused pointer tblk Colin Ian King
@ 2022-04-25 14:48 ` Dan Carpenter
2022-04-25 17:08 ` Dave Kleikamp
0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2022-04-25 14:48 UTC (permalink / raw)
To: Colin Ian King
Cc: Dave Kleikamp, jfs-discussion, kernel-janitors, linux-kernel
On Sun, Apr 24, 2022 at 05:13:30PM +0100, Colin Ian King wrote:
> The pointer tlbk is not used, it is redundant and can be removed.
> Cleans up cppcheck warning:
>
> linux/fs/jfs/jfs_xtree.c:2551:17: style: Unused variable: tblk [unusedVariable]
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---
> fs/jfs/jfs_xtree.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/fs/jfs/jfs_xtree.c b/fs/jfs/jfs_xtree.c
> index 3148e9b35f3b..d29979d0a6aa 100644
> --- a/fs/jfs/jfs_xtree.c
> +++ b/fs/jfs/jfs_xtree.c
> @@ -2548,7 +2548,6 @@ xtRelocate(tid_t tid, struct inode * ip, xad_t * oxad, /* old XAD */
> int xtype)
> { /* extent type: XTPAGE or DATAEXT */
> int rc = 0;
> - struct tblock *tblk;
This would have caused a build error if it weren't ifdeffed out.
#ifdef _STILL_TO_PORT
JFS is an IBM filesystem from OS/2. Apparently, this stuff never got
ported? Probably we could just delete the dead code.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] jfs: remove unused pointer tblk
2022-04-25 14:48 ` Dan Carpenter
@ 2022-04-25 17:08 ` Dave Kleikamp
0 siblings, 0 replies; 3+ messages in thread
From: Dave Kleikamp @ 2022-04-25 17:08 UTC (permalink / raw)
To: Dan Carpenter, Colin Ian King
Cc: jfs-discussion, kernel-janitors, linux-kernel
On 4/25/22 9:48AM, Dan Carpenter wrote:
> On Sun, Apr 24, 2022 at 05:13:30PM +0100, Colin Ian King wrote:
>> The pointer tlbk is not used, it is redundant and can be removed.
>> Cleans up cppcheck warning:
>>
>> linux/fs/jfs/jfs_xtree.c:2551:17: style: Unused variable: tblk [unusedVariable]
>>
>> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
>> ---
>> fs/jfs/jfs_xtree.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/fs/jfs/jfs_xtree.c b/fs/jfs/jfs_xtree.c
>> index 3148e9b35f3b..d29979d0a6aa 100644
>> --- a/fs/jfs/jfs_xtree.c
>> +++ b/fs/jfs/jfs_xtree.c
>> @@ -2548,7 +2548,6 @@ xtRelocate(tid_t tid, struct inode * ip, xad_t * oxad, /* old XAD */
>> int xtype)
>> { /* extent type: XTPAGE or DATAEXT */
>> int rc = 0;
>> - struct tblock *tblk;
>
> This would have caused a build error if it weren't ifdeffed out.
>
> #ifdef _STILL_TO_PORT
>
> JFS is an IBM filesystem from OS/2. Apparently, this stuff never got
> ported? Probably we could just delete the dead code.
Yeah. Once, long ago, I had dreams of enhancing JFS with shiny new
function like defragmentation. I think it's safe to say that isn't going
to happen.
Shaggy
>
> regards,
> dan carpenter
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-25 17:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-24 16:13 [PATCH] jfs: remove unused pointer tblk Colin Ian King
2022-04-25 14:48 ` Dan Carpenter
2022-04-25 17:08 ` Dave Kleikamp
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.