Skip to content

Commit

Permalink
Merge pull request #11 from BitExplorer/master
Browse files Browse the repository at this point in the history
added initialization of a variable
  • Loading branch information
psankar authored Oct 27, 2019
2 parents df5314f + 70b5664 commit 451cb1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static struct kmem_cache *sfs_inode_cachep;

void simplefs_sb_sync(struct super_block *vsb)
{
struct buffer_head *bh;
struct buffer_head *bh = NULL;
struct simplefs_super_block *sb = SIMPLEFS_SB(vsb);

bh = sb_bread(vsb, SIMPLEFS_SUPERBLOCK_BLOCK_NUMBER);
Expand Down Expand Up @@ -76,8 +76,8 @@ struct simplefs_inode *simplefs_inode_search(struct super_block *sb,
void simplefs_inode_add(struct super_block *vsb, struct simplefs_inode *inode)
{
struct simplefs_super_block *sb = SIMPLEFS_SB(vsb);
struct buffer_head *bh;
struct simplefs_inode *inode_iterator;
struct buffer_head *bh = NULL;
struct simplefs_inode *inode_iterator = NULL;

if (mutex_lock_interruptible(&simplefs_inodes_mgmt_lock)) {
sfs_trace("Failed to acquire mutex lock\n");
Expand Down

0 comments on commit 451cb1b

Please sign in to comment.